chmod 755 (rwxr-xr-x)

chmod 755 (rwxr-xr-x) gives the owner read, write and execute, the group read and execute, and everyone else read and execute.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Symbolic rwxr-xr-x
Read (4)Write (2)Execute (1)
Owner
Group
Others
Special
chmod 755 file

What chmod 755 means

ClassDigitPermissions
Owner7read, write and execute
Group5read and execute
Others5read and execute

The standard for directories and executable scripts: everyone can read and enter/execute, only the owner can modify.

chmod 755 file.txt          # one file
find /var/www -type f -exec chmod 755 {} +   # all files in a tree

How octal permissions work

Each digit is the sum of read (4), write (2) and execute (1) for owner, group and others. So 7 = 4+2+1 = rwx, 5 = 4+1 = r-x, 4 = r--. An optional leading digit sets special bits: setuid (4), setgid (2) and sticky (1) โ€” e.g. 1777 is /tmp.

Safe defaults for web servers

Popular modes