Page 2 of 3
Re: File permissions
Posted: Sat Feb 06, 2010 5:37 pm
by chris86wm
The above script gives me the following error when I run it (using Debian)
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
I really appreciate all of the help guys. Feeling like a dummy now since I cant get this going

Re: File permissions
Posted: Sat Feb 06, 2010 6:17 pm
by Cas
chris86wm wrote:The above script gives me the following error when I run it (using Debian)
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
I really appreciate all of the help guys. Feeling like a dummy now since I cant get this going

Not sure how you got that error, did you modify the script or use the updated version?
Make sure that --umask is part of the start-stop-daemon command options.
Code: Select all
start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --exec $DAEMON1 \
--umask $UMASK --chuid $DELUGED_USER --user $DELUGED_USER --test > /dev/null
Re: File permissions
Posted: Sat Feb 06, 2010 6:36 pm
by chris86wm
I am using the updated one posted on the wiki
Re: File permissions
Posted: Sat Feb 06, 2010 6:55 pm
by Cas
chris86wm wrote:I am using the updated one posted on the wiki
From the console check that your debian start-stop-daemon command has the umask option:
Code: Select all
start-stop-daemon --help | grep umask
It will return
"-k|--umask <mask> change the umask to <mask> before starting" on unbuntu
Re: File permissions
Posted: Sat Feb 06, 2010 7:20 pm
by chris86wm
I checked it and it returned
Code: Select all
-k|--umask <mask> change the umask to <mask> before starting
Re: File permissions
Posted: Sat Feb 06, 2010 7:25 pm
by Cas
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
Re-reading your post it actually seems to suggest --umask has been added to /etc/default/deluge-daemon file, can you check?
Re: File permissions
Posted: Sat Feb 06, 2010 7:48 pm
by chris86wm
That was it! It seems like in my attempt to figure things out, i added some umask stuff to the /etc/default/deluge-daemon file. Man i feel silly.
Thanks for all of your help and patience guys!
Re: File permissions
Posted: Wed Apr 28, 2010 1:10 pm
by JanAcc
Could it be that there is a slight error in the init script for ubuntu?
umask didn't work properly until I changed the line
into
Re: File permissions
Posted: Wed Apr 28, 2010 1:53 pm
by johnnyg
JanAcc wrote:Could it be that there is a slight error in the init script for ubuntu?
umask didn't work properly until I changed the line
into
I would have assumed that it treated the umask as always being octal but maybe it was treating 22 as decimal due to it not having the leading zero.
I've modified the init script to have a leading zero.
Thanks for telling us.
Re: File permissions
Posted: Mon May 17, 2010 3:30 pm
by Centrius
Thanks for this, it was really helpful!