What does chmod 755 mean? Directory permissions, script execution, and security

chmod 755 sets permissions to rwxr-xr-x: the owner can read, write, and execute; the group and everyone else can read and execute but not modify. This is the default permission for directories and executable scripts on every Unix-like system, and for good reason: it lets the owner manage files while letting everyone else use them safely.

Octal
755
chmod 755
Symbolic
rwxr-xr-x
Owner / Group / Others
Category
Common Permissions
Standard permissions

Calculator

CHMOD Configurator

Calculate Linux file permissions using checkboxes, octal numbers, or symbolic notation.

Owner

Group

Public

-rwxr-xr-x

Command Line Example

chmod 755 filename
Or apply recursively to all files and directories inside a folder:
chmod -R 755 foldername/

How this is calculated

In octal, 7 = 4+2+1 (read+write+execute) and 5 = 4+0+1 (read+execute). The three digits apply to owner, group, and others in that order. 755 is safe for most use cases because it prevents accidental modification by other users while still letting them access the files. For web servers, 755 on directories and 644 on files is the standard deployment baseline. Never use 777 unless you have a very specific reason and understand that any user on the system can modify or delete those files.

Verdict

755 is the correct default for directories and executable scripts. It balances usability and security. If you're ever unsure what permissions to set, start at 755 for directories and 644 for files, then tighten from there.

More Common Permissions scenarios

Frequently asked questions

When should I use chmod 755 vs 644?
Use 755 for directories (need execute to enter) and scripts/binaries (need execute to run). Use 644 for static files like HTML, CSS, images, and config files that should be readable but not executable.