script to set permissions...

Come up with a useful post-processing script? Share it here!
Post Reply
jeff_porter
Newbie
Newbie
Posts: 25
Joined: February 13th, 2008, 5:02 pm

script to set permissions...

Post by jeff_porter »

Hello all,

I'm still running 3.1, but I have an issue with permissions on NAS.
SAB is running as root, which is fine, but when stuff is downloaded it is read/write/delete for root and no one else.

My ftp user on box has read permission on the root folder, but these permissions does get appied to any sub folders created.

SO....

Can anyone give me some guidance on how/where to setup a post processing script to do a chmod on a download when its completed?

Cheers
Jeff
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: script to set permissions...

Post by DeXeS »

in 0.3.3 (think also in 0.3.1) you can set in the configuration screen the permissions.

and else when thats not in 0.3.1 use the following wiki page to start it with commandline:
http://sabnzbdplus.wiki.sourceforge.net ... ermissions

Edit:
the above url only works when using unix kind of system.
Last edited by DeXeS on March 16th, 2008, 11:01 am, edited 1 time in total.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: script to set permissions...

Post by rascalli »

3.1 also had the permission , otherwise you can always add it to the ini.

see this post : http://forums.sabnzbd.org/index.php?topic=288.0
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: script to set permissions...

Post by DeXeS »

Note that if you set it like that link (permissions = 0777), all users can do anything in download done folder. Search the internet for unix permissions if you don't already know that ;).
Post Reply