Search tools

Linux file permissions

chmod 711: what it means and when to use it

chmod 711 gives the owner full permissions while limiting everyone else to execute-only access.

711 rwx--x--x
What chmod 711 allows for each class of user
WhoDigitRead WriteExecute
Owner 7 Yes Yes Yes
Group 1 No No Yes
Everyone else 1 No No Yes

How chmod 711 works

Execute without read looks strange on a regular script, because shells usually need read access to parse interpreted code. Its real power is on directories and compiled binaries.

On a directory such as /home/alice, mode 711 lets another user or a web server reach a known subpath like /home/alice/public_html/index.html if they know its exact name, while stopping them from running ls to list your home folder.

Where 711 belongs

  • Parent directories where processes may traverse known paths without listing
  • Public-facing user home folders hosting ~/public_html sites
  • Compiled native binaries where inspection is discouraged

The command

Both of these set exactly the same permissions. The number is shorter; the letters are easier to read back later.

chmod 711 filename
chmod u=rwx,g=x,o=x filename

Interpreted scripts (Bash, Python, Node) fail to run under 711 for non-owners because the interpreter itself must read the source text.

Open 711 in the chmod calculator