Escolar Documentos
Profissional Documentos
Cultura Documentos
Andrew Nashel
nashel@cs.unc.edu
Department of Computer Science
permissions
1st character: type, ‘-’ for file, ‘d’ directory, ‘s’ special, ‘l’ link
Next three are read, write, execute for owner
Then, next three for group, and next three for all others.
-rwxrwxrwx
Everyone can read, write and execute
(and delete) (not very common!)
-rw-r--r--
Everyone can read, but only owner can
write
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Examples – Directories
drwx------
Only owner can view, cd into, and
delete
drwxrwx---
Owner and group can view, write, etc.
drwxr-xr-x
Everyone can cd into but only owner
can
modify The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL
Changing permissions
$ chmod [ugoa(+/-)rwx] <dir>