Modifying File Permissions


There are three types of file permissions: read, write, execute . File permissions can be changed with the command chown.

user@host:~/directory$ ls -l
total 24
-rw-rw-rw- 1 user   user   52 Jun 4 10:24 write-read-file.txt
-r--r--r-- 1 user   user   48 Jun 4 10:15 read-only-file.txt
---------- 1 user   user   51 Jun 4 10:23 secret-file.txt
---x--x--x 1 user   user    0 Jun 4 10:40 executable.sh
drwxr-xr-x 4 user   user 4096 Jun 4 11:34 documents
drwxr-xr-x 4 tux   users 4096 Dec 9 12:25 photos
drwxr-xr-x 4 Juan admins 4096 Dec 6 12:26 music