rwx

Learn Linux permissions interactively!

EN FR
Unix Permissions

Inherited from Unix 1969, this permission system protects every file and directory on all POSIX systems, like Linux.

Rights
read (r), write (w), execute (x)
Categories
owner (u), group (g), others (o)
Command
chmod
Notation
Octal / Symbolic
Typical use casesUse cases
Permissions
a
r
w
x
type
Owner
u
r
w
x
Group
g
r
w
x
Others
o
r
w
x
Permission detailsDetails File
Type
Owner
Group
Others
Rights
File
Read, Write
Read
Read
Octal value
  0
64 + 2 + 0
44 + 0 + 0
44 + 0 + 0
New rights
New octal value
  0
0
0
0
chmod command
chmod OCTAL-MODE FILE - chmod MODE[,MODE] FILE
$ chmod 644 file.txt
$ ls -l file.txt
-rw-r--r-- user group file.txt
$ chmod u=rw,g=r,o=r file.txt
$ chmod file.txt