aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Permissions downloaded files  (Read 2429 times)

fredoman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Permissions downloaded files
« 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.

Logged

Nerofumo

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 59
  • Just an old sysadm & dba
Re: Permissions downloaded files
« Reply #1 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.
Logged
Nowadays you have to think like a hero just to behave like a merely decent human being.

fredoman

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Permissions downloaded files
« Reply #2 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  ::)  )
Logged

Nerofumo

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 59
  • Just an old sysadm & dba
Re: Permissions downloaded files
« Reply #3 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.  :)
Logged
Nowadays you have to think like a hero just to behave like a merely decent human being.