change the group of downloaded files ?

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
alboon
Newbie
Newbie
Posts: 22
Joined: August 31st, 2008, 11:25 am

change the group of downloaded files ?

Post by alboon »

hi,
i use sabnzbd on a linux server.
can i change the the owner group of created files ? (now files created is root:root right)
juste change permission is not the better solution but perhaps the only one ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: change the group of downloaded files ?

Post by shypike »

Run SABnzbd under the user account that should own the files.
There's no need to run it as root (it's safe if you don't).
alboon
Newbie
Newbie
Posts: 22
Joined: August 31st, 2008, 11:25 am

Re: change the group of downloaded files ?

Post by alboon »

ok thx,
i'm on debian server.
i use the commande line "python /.../.../sabnzbd.py -f /.../.../sabnzbd.ini -d" to run it on the boot,
do you know how to launch it with a specific acount ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: change the group of downloaded files ?

Post by shypike »

See the Wiki: http://sabnzbd.wikidot.com/install-as-a-unix-daemon
The crucial bit is:

Code: Select all

/usr/bin/sudo -u PUT-USER-HERE -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /home/PUT-USER-HERE/.sabnzbd/sabnzbd.ini
alboon
Newbie
Newbie
Posts: 22
Joined: August 31st, 2008, 11:25 am

Re: change the group of downloaded files ?

Post by alboon »

thx a lot for the links,

on debian the great command is su -c 'python..............' user

also i do this :

#!/bin/sh

case "$1" in
start)
  echo "Starting SABnzbd."
  su -c ' /usr/local/src/SABnzbd/SABnzbd.py -d -f /home/sabuser/.sabnzbd/sabnzbd.ini' user
;;
stop)
  echo "Shutting down SABnzbd."
  /usr/bin/wget -q --delete-after "http://HOSTADDRESS:PORT/sabnzbd/api?mode=shutdown&apikey=ENTERAPIKEYHERE"
;;
*)
  echo "Usage: $0 {start|stop}"
  exit 1
esac

exit 0

and it works perfectly
Post Reply