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 Clarification  (Read 2491 times)

Pink Panther

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • An Apple a day keeps Bill Gates away.
Permissions Clarification
« on: October 24, 2005, 09:13:55 AM »

What exactly do my following default permissions mean:
Files   6 4 0
Directories   7 5 0

What is the maximum security configuratin?
What is optimal permission configuration?
« Last Edit: October 25, 2005, 04:19:02 PM by Pink Panther »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Permissions Clarification
« Reply #1 on: October 24, 2005, 10:23:10 AM »

1 means that the iser is allowed to execute the file or browse the folder
2 means that the user has the permission to write to the file or create files in the folder
4 means that user may read to the file or view the files in the folder

Then you just add them and you get the number
4+2=6(read+write)
4(read)
0(no permissions)

4+2+1=7(view files+create files+browse folder)
4+1)5(view files+browse folder)

Quote
What is the maximum security configuratin?
000 ;)
Quote
What is optimal permission configuration?
As always it's a compromise between security and comfort. I've set it to 644 for files and 750 for folders.
Logged

Pink Panther

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
  • An Apple a day keeps Bill Gates away.
Re: Permissions Clarification
« Reply #2 on: October 24, 2005, 11:31:48 AM »

Hi wuischke,
Thanks for a beautiful complete answer!
Yes, 000 is maximum security configuration indeed...
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Permissions Clarification
« Reply #3 on: October 24, 2005, 11:46:30 PM »

What wuischke left out of his description is that the three digits stand for: owner's permissions, group's permissions, everybody else's permissions.

So, 6 4 0 means: owner may read and write, group may read, everybody else has no access permissions.

And 0 0 0 actually denies everybody, including you, the owner, permission to access the file.  There's really no reasons to change the first digit.
Logged