chmod 550

chmod 550 gives r-xr-x---. The owner and group can read and run it. Scripts or directories shared with a service group, but never edited in place.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Owner

Group

Others

Permissions

r-xr-x---

Command

chmod 550 file

Chmod Calculator

chmod 550 explained

Octal550
Symbolicr-xr-x---
Ownerread, execute
Groupread, execute
Othersno access
ls -l Shows-r-xr-x---
Commandchmod 550 file
Symbolic Commandchmod u=rx,g=rx,o= file

Each digit of 550 is one class of user and adds up read (4), write (2) and execute (1). 5 for the owner is read, execute; 5 for the group is read, execute; 0 for the others is no access.

The owner and group can read and run it. Scripts or directories shared with a service group, but never edited in place.

On a directory, execute means permission to enter it and reach files inside; read means permission to list it. That is why directories usually have execute wherever they have read.

Questions

What does chmod 550 mean?
Owner: read, execute. Group: read, execute. Others: no access. In letters: r-xr-x---.
Is chmod 550 safe?
Yes, for the uses described here. Nobody outside the classes given write access can change the file.
How do I apply 550 to every directory but not files?
find /path -type d -exec chmod 550 {} + (and use -type f for files only).
How do I set 550 recursively?
chmod -R 550 /path. Be careful: this gives files and directories the same mode, which is rarely what you want; the find command above is safer.

Run servers for other people?

Frabs stops the abuse their VMs send out, and keeps your network off blocklists.