chmod 711 (rwx--x--x)

The owner has full access; everyone else gets execute only. On a directory that means others can pass through to a path they already know, but cannot see what else is there.

Owner
Group
Others
Symbolic
Command

This tool runs in your browser. We never send what you type or paste to a server.

What chmod 711 sets

WhoDigitReadWriteExecuteSymbolic
Owner (u)7yesyesyesrwx
Group (g)1nonoyes--x
Others (o)1nonoyes--x
chmod 711 file         # numeric
chmod u=rwx,go=x file  # the same, in symbolic form

ls -l shows this mode as -rwx--x--x on a file and drwx--x--x on a directory. On a file, execute means it can be run as a program. On a directory, read lists the names inside, write creates, renames and deletes entries, and execute (search) is what lets you enter it and reach the files inside.

Pass through, but not look around

Listing a directory needs its read bit. Reaching a named entry inside needs only its execute bit. 711 gives other users the second without the first:

chmod 711 /home/ana
ls /home/ana                             # as another user: Permission denied
cat /home/ana/public/notes.txt           # works, if public and notes.txt allow it

Tab completion and wildcards fail for the same reason as ls: they need to read the list of names. A full path that is already known works.

The usual use: a home directory with something public below it

For a web server to serve ~/public_html/index.html, the user it runs as needs execute permission on /home, on your home directory and on public_html, plus read permission on the file. 711 on the home directory supplies the middle step without showing every visitor to the machine what else you keep there.

chmod 711 ~
chmod 755 ~/public_html
chmod 644 ~/public_html/index.html
namei -l ~/public_html/index.html        # Linux (util-linux): the mode of each step on the path

If only one service needs to get in, 750 with that service's group on the directory is tighter still: accounts outside the group cannot even pass through.

It hides names, not files

711 does not protect what is inside. Names can be guessed, and plenty are predictable: .bashrc, .env, backup.sql, .git/config. Once a name is known, the file's own mode is all that stands in the way, and a 644 file in a 711 directory is readable by anyone who asks for it by name.

So keep private files at 600 and private subdirectories at 700, as you would under 755. Other users cannot create or delete anything in a 711 directory, since they have no write bit.

711 on a file

An execute-only program: others can run it but cannot read or copy it. That works for a compiled binary, which the kernel loads itself.

It does not work for a script. A script is run by its interpreter, and the interpreter has to open and read the file with the caller's permissions, so other users get "Permission denied". A script that others may run needs 755.

711 compared with its neighbours

ModeSymbolicDifference from 711
700rwx------Others cannot pass through at all
750rwxr-x---The group can list and enter; everyone else is shut out
755rwxr-xr-xEveryone can list the contents as well

Questions

What does chmod 711 do on a directory?

It lets the owner do everything and lets everyone else pass through without listing. Other users cannot run ls in it or use wildcards, but they can open a file or subdirectory inside if they know its exact name and that entry's own permissions allow it.

Is 711 or 755 better for a home directory?

711 if other users or a web server only need to reach a known subdirectory such as public_html, because it does not reveal what else is in your home directory. 755 if you want others to be able to browse it. If nothing outside your account needs access, 700 is better than both.

Why can other users not run my script when it is chmod 711?

Because a script has to be read by its interpreter, and 711 gives others execute permission without read permission. Compiled programs can be execute-only; scripts cannot. Use 755 for a script that other users should be able to run.