Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
As Lynxus said, it's the octal notation.
The first bit is for the owner of the file/directory.
The second is for the user of the same group than the owner.
The third bit is for everyone else.
The notation is 4 for the write permission, 2 for the read permission and 1 for the execute permission
So, 7 is 4+2+1 (read + write + execute).
And over a directory, the execute permission is to list the content of the directory.
doing a "chmod 755 file" means all permissions for the file owner, and read and execute for everyone else.
__________________
Only a biker knows why a dog sticks his head out the window.
|