File permissions

General support for problems installing or using Deluge
chris86wm
Member
Member
Posts: 12
Joined: Mon Feb 01, 2010 4:56 am

Re: File permissions

Post 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 :roll:
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: File permissions

Post 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 :roll:
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
chris86wm
Member
Member
Posts: 12
Joined: Mon Feb 01, 2010 4:56 am

Re: File permissions

Post by chris86wm »

I am using the updated one posted on the wiki
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: File permissions

Post 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
chris86wm
Member
Member
Posts: 12
Joined: Mon Feb 01, 2010 4:56 am

Re: File permissions

Post by chris86wm »

I checked it and it returned

Code: Select all

 -k|--umask <mask>             change the umask to <mask> before starting
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: File permissions

Post 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?
chris86wm
Member
Member
Posts: 12
Joined: Mon Feb 01, 2010 4:56 am

Re: File permissions

Post 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!
JanAcc
Member
Member
Posts: 23
Joined: Mon Dec 22, 2008 1:42 am

Re: File permissions

Post 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

Code: Select all

UMASK=22
into

Code: Select all

UMASK=022
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: File permissions

Post 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

Code: Select all

UMASK=22
into

Code: Select all

UMASK=022
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.
Centrius
Member
Member
Posts: 18
Joined: Thu Oct 22, 2009 11:34 am

Re: File permissions

Post by Centrius »

Thanks for this, it was really helpful!
Post Reply