aMule Forum

English => aMule Help => Topic started by: fredoman on July 16, 2007, 12:18:49 AM

Title: Permissions downloaded files
Post by: fredoman on July 16, 2007, 12:18:49 AM
Yes, I have read the FAQ  ;)

I can't get downloaded files to be assigned the permissions I would like (666), newly downloaded files will be systematically -rw---x--

umask is 0000

extract from amule.conf
Code: [Select]
TempDir=/mnt/p2p/amule_temp
IncomingDir=/mnt/p2p/amule_downloads
PermissionsFiles=666
PermissionsDirs=666

directory permissions of download directories are
Code: [Select]
drwxrwxrwx 2 nobody nogroup 4096 2007-07-15 23:43 amule_downloads
drwxrwxrwx 2 nobody nogroup 4096 2007-07-16 00:02 amule_temp

amuled and amuleweb run as user "amule".

I tested creating new files with touch or vi as user amule, they are correctly created as rw-rw-rw- so the problem seems to be either on amule side or I am missing some deeper understanding of Linux (which is not at all unlikely).

System is a PPC based NAS running Debian Etch and amule 2.1.3-1 (command line only, no GUI).

Thanks in advance for any hints.

Title: Re: Permissions downloaded files
Post by: Nerofumo on July 16, 2007, 02:02:12 AM
in amule.conf permissions are in decimal notation, so here's a simple table

octal    decimal

666      438

777      511

hope it can help you.
Title: Re: Permissions downloaded files
Post by: fredoman on July 16, 2007, 11:49:21 PM
Thanks, that was the solution. I wonder what is the design idea behind transforming the octal permissions in decimal (other than confuse newbees  ::)  )
Title: Re: Permissions downloaded files
Post by: Nerofumo on July 17, 2007, 12:23:07 AM
Good question.

I've no answer for that, just an insight into what could be that strange number when i checked my configuration file.  :)