Linux file permissions

chmod 755 (rwxr-xr-x)

Owner: read, write, execute · Group: read, execute · Others: read, execute

755numeric
rwxr-xr-xsymbolic
7 · 5 · 5owner · group · others
Commands
chmod 755 filename chmod u=rwx,g=rx,o=rx filename chmod -R 755 folder/ # apply to a folder and everything in it

Change any permission with the chmod calculator.

What chmod 755 means

WhoDigitLettersCan
Owner (user)7rwxread, write, execute
Group5r-xread, execute
Others5r-xread, execute

Each digit is the sum of read (4), write (2) and execute (1).

When to use 755

Scripts, programs and web folders: everyone can read and run, only the owner can change.

Related permissions

Questions

What does chmod 755 mean?

chmod 755 sets the permissions to rwxr-xr-x: the owner can read, write, execute, the group can read, execute and others can read, execute.

When should I use 755?

Scripts, programs and web folders: everyone can read and run, only the owner can change.

What is 755 in symbolic form?

755 is rwxr-xr-x (shown by ls -l as -rwxr-xr-x for a file or drwxr-xr-x for a folder). The symbolic chmod command is chmod u=rwx,g=rx,o=rx file.