aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: changing file permissions of files in incoming under linux  (Read 2033 times)

mali

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
  • aMule user
changing file permissions of files in incoming under linux
« on: June 07, 2009, 12:14:28 PM »

Hi!

I'm using amuled 2.2.5 under linux. In former versions there was a possibility in the settings of amule to change the file permissions of the completing files. E.g. you could set it to "644". In Version 2.2.5 I don't find that setting any more. The files in incoming have the permission "-rw-r--r--". For me this is to restrictive, because other users should also have a write-permission.

Is there a way to change that default-setting in 2.2.5?

thanks in advance!

mali
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: changing file permissions of files in incoming under linux
« Reply #1 on: June 07, 2009, 12:28:07 PM »

Hi,

the umask value is used to determine the file permission. Please change your umask value in order to reach your desired permissions. You can do this for instance by adding "umask 002" to $HOME/.profile .

Example: The default umask on Debian is 022. This results in file permissions of 666 - 022 = 644, i.e. rw-r--r--. (For directories it's 777-umask)
To set it to rw for group, you change the umask to 002 resulting in rw-rw-r--.
Logged