breakitdown

chmod 750 (rwxr-x---)

Answer

chmod 750 sets rwxr-x---: the owner has full access, members of the group can read and execute (for a directory: list and enter it), and everyone else is shut out.

Try

chmod 750 = rwxr-x---: owner full access, group read and execute, others nothing.

Read 4Write 2Execute 1Digit
Owner (user)7
Group5
Others0
Special0
  1. 7
    Owner (user): 7 = 4 read + 2 write + 1 execute
  2. 5
    Group: 5 = 4 read + 1 execute
  3. 0
    Others: 0 = no permissions

On a file

  • Owner (user) read it, change it and run it as a program
  • Group read it and run it as a program
  • Others no access

On a directory

  • Owner (user) list the names inside, enter it and open files by name, create and rename and delete entries
  • Group list the names inside and enter it and open files by name
  • Others no access

chmod 750 filechmod u=rwx,g=rx,o= filels -l → -rwxr-x---

What to know

750 is 755 with the access for others removed. It suits a directory that one service account owns and a second account, made a member of the group, needs to read.

Ubuntu has created home directories with mode 750 since 21.04 (set by HOME_MODE in /etc/login.defs), so other users on the same machine can no longer browse your files.

Where it fits

Gotchas

Related explainers

← chmod calculator