Creating directories with setgid bit - no way to not set it for files though?
Posted: September 9th, 2010, 7:26 am
In the interests of keeping things manageable I'd like to use the setgid bit to ensure a common group is used for all new directories and files. I've set the "Permissions for completed downloads" setting to "2770", but of course this sets the setgid bit for files as well as for directories, which is undesirable for security reasons. When set to "770" the created directories don't inherit the parent directory's setgid bit since I assume they're actually created in the temporary location without it then moved across, which circumvents the usual behaviour for creating directories in directories with setgid set. I've had a good search for this on the forums but couldn't find anything.
Is there any way to specify permissions for created directories separately from permissions for created files?
Or, is there a way to specify the group for created files and directories?
Or, is there some other way to accomplish this (perhaps some post-completion script or command)?
I'm quite new to sabnzbd so far so please keep it simple Brilliant application so far by the way, well done.
Is there any way to specify permissions for created directories separately from permissions for created files?
Or, is there a way to specify the group for created files and directories?
Or, is there some other way to accomplish this (perhaps some post-completion script or command)?
I'm quite new to sabnzbd so far so please keep it simple Brilliant application so far by the way, well done.