
File and directory handling 227
DONE
INDEX
INDEX
Chapter 14
File and directory handling
14.1 Permissions and Type of Access
14.1.1 Permissions of a file
The permissions of a file:
• determine what each user can do with the file
• are represented :
• by a set of characters -, r, w and x or
• by a set of numbers between 0 and 7
1 = x = file is executable
2 = w= file is writable
4 = r = file is readable
The numbers 3, 5, 6 and 7 are combinations of 1,2 and 4:
e.g. 7 = 4 + 2 + 1= rwx
Commenti su questo manuale