Page 1 of 1
change the group of downloaded files ?
Posted: May 10th, 2009, 11:33 am
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 ?
Re: change the group of downloaded files ?
Posted: May 10th, 2009, 1:36 pm
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).
Re: change the group of downloaded files ?
Posted: May 12th, 2009, 12:07 am
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 ?
Re: change the group of downloaded files ?
Posted: May 12th, 2009, 1:56 am
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
Re: change the group of downloaded files ?
Posted: May 13th, 2009, 12:21 am
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