Automatically set owner of downloads?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Comedy
Newbie
Newbie
Posts: 8
Joined: February 21st, 2008, 3:25 pm

Automatically set owner of downloads?

Post by Comedy »

Hi, Fisrt of all I'll point out that sabnzbd is great.. I've been trying to find a decent linux usenet client for a while now and I found it.

I have one problem though.... once a download completed the files and the directories created are owned by root and I don't even have permission to view them. I've been getting by this with 'chmod -R me /my/download/folder' but I was wondering if there's a way for the files to automatically be saved as mine?

Thanks
duz
Jr. Member
Jr. Member
Posts: 76
Joined: January 21st, 2008, 6:53 pm

Re: Automatically set owner of downloads?

Post by duz »

You could run SAB as yourself using sudo -u.  That's what I do, but I'm lazy.
Comedy
Newbie
Newbie
Posts: 8
Joined: February 21st, 2008, 3:25 pm

Re: Automatically set owner of downloads?

Post by Comedy »

Thanks for the suggestion, I just gave it a try but it didn't work... The server wouldn't come up. I chown'd all the sabnzbd files too to make sure there was no rights issues but I'm getting errors now from cherrypy in /var/lib/. I don't really want to chown all of that too.

I'll keep trying to mess with it but if anyone knows a way for sabnzbd to automatically save files as another user.. please :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Automatically set owner of downloads?

Post by shypike »

Use the --permissions option on the commandline.

./SABnzbd.py --permissions 0777

Will make all files accessible for everyone.

Documented in:
http://sabnzbdplus.wiki.sourceforge.net ... ermissions
mdamen
Newbie
Newbie
Posts: 2
Joined: February 16th, 2008, 1:03 pm

Re: Automatically set owner of downloads?

Post by mdamen »

You have two options, either change permissions to some world readable... please see the wiki:

http://sabnzbdplus.wiki.sourceforge.net ... ermissions

Or you could create a post script doing the chown for you...
duz
Jr. Member
Jr. Member
Posts: 76
Joined: January 21st, 2008, 6:53 pm

Re: Automatically set owner of downloads?

Post by duz »

You can also add yourself to whatever group sab is running in and make sure the files are output as group read/write.
DeXeS
Release Testers
Release Testers
Posts: 206
Joined: January 28th, 2008, 1:04 pm
Location: The Netherlands

Re: Automatically set owner of downloads?

Post by DeXeS »

Run it as the user you want to have permission:

Code: Select all

sudo -u duz -H /home/duz/SABnzbd-0.3.1/SABnzbd.py
change the directory and user you want to have permission only

if you add --permissions 0770 extra, the user it runs has full permission, the group that the user is in has full permission and the rest have no permission.

correct me if im wrong... only using unix for 2 months  ;)
Last edited by DeXeS on February 22nd, 2008, 5:15 pm, edited 1 time in total.
Post Reply