Linux file permissions

chmod 555 (r-xr-xr-x)

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

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

Change any permission with the chmod calculator.

What chmod 555 means

WhoDigitLettersCan
Owner (user)5r-xread, execute
Group5r-xread, execute
Others5r-xread, execute

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

When to use 555

Read-only programs or folders for everyone.

Related permissions

Questions

What does chmod 555 mean?

chmod 555 sets the permissions to r-xr-xr-x: the owner can read, execute, the group can read, execute and others can read, execute.

When should I use 555?

Read-only programs or folders for everyone.

What is 555 in symbolic form?

555 is r-xr-xr-x (shown by ls -l as -r-xr-xr-x for a file or dr-xr-xr-x for a folder). The symbolic chmod command is chmod u=rx,g=rx,o=rx file.