- * I've tried using a post processing script like the one mentioned here (minus the chown). That works (the files wind up with the correct group) except that it does not work on any directories created by sabnzbd. So if categorization creates title/season/file , the group ownership is only applied to the file and not the title nor season directories. Applying setgid to the download (and even sabnzb temp!) directory does not help as sabnzbd overrides the use of the setguid bit when creating sub-directories. i.e. Sabnzbd honors setgid when creating the title directory, and overrides it when creating a season sub-directory and file. (I know, you're probably saying, "whaaaaaa?" See below for example output!)
* I then tried bringing out the big gun and use ACLs to enforce a default username, group, and permissions. (In retrospect doing permissions was dumb since sab has the ability to set permissions... ha!) While this works for anything you care to do as a regular user, similar to the setgid override sabnzbd actively overrides default user and group ownership.
Code: Select all
/incoming/nzb_output_here$ touch test
/incoming/nzb_output_here$ mkdir testdir
/incoming/nzb_output_here$ ls -l | grep test
-rw-rw-r--+ 1 vince mythtv 0 Nov 22 06:17 test
drwxrwsr-x+ 2 vince mythtv 2 Nov 22 06:17 testdir
/incoming/nzb_output_here$ cd testdir
/incoming/nzb_output_here/testdir$ touch test2
/incoming/nzb_output_here/testdir$ mkdir testdir2
/incoming/nzb_output_here/testdir$ ls -l | grep test
-rw-rw-r--+ 1 vince mythtv 0 Nov 22 06:17 test2
drwxrwsr-x+ 2 vince mythtv 2 Nov 22 06:17 testdir2
Code: Select all
/incoming/nzb_output_here$ ls -l | grep "The Grand"
/incoming/nzb_output_here$ ###download test nzb par file...
/incoming/nzb_output_here$ ls -l | grep "The Grand"
drwxrwxr--+ 3 vince mythtv 3 Nov 22 06:54 The Grand Tour
/incoming/nzb_output_here$ cd The\ Grand\ Tour/
/incoming/nzb_output_here/The Grand Tour$ ls -l
total 56
drwxrwxr--+ 2 vince vince 3 Nov 22 06:54 Season 1
/incoming/nzb_output_here/The Grand Tour$ cd Season\ 1
/incoming/nzb_output_here/The Grand Tour/Season 1$ ls -l
total 23346
-rw-rw-r--+ 1 vince vince 25000000 Nov 22 06:54 The.Grand.Tour.S01E01.720p WEBRip X264 Par 2 Files vol12773 par.001
Thanks in advance!
Here's my ACL for that directory, just in case I messed something up there:
Code: Select all
/incoming/nzb_output_here$ getfacl .
# file: .
# owner: vince
# group: mythtv
# flags: -s-
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::r-x

