5. Permissions

5.1. Understanding Permissions

Table 5.1. Permissions

Permission

Binary

Octal

Description

---

000

0

Cannot read, execute or modify

--x

001

1

Can execute

-w-

010

2

Can write (modify)

-wx

011

3

Can modify and execute

r--

100

4

Can read

r-x

101

5

Can read and execute

rw-

110

6

Can read and write

rwx

111

7

Can read, write and execute

5.2. Changing Permissions

  • chmod

  • chown

  • chgrp

5.3. UMASK

  • export UMASK=022

5.4. Sticky bit

  • chmod +s

5.5. ACL