chmod 755 — what rwxr-xr-x means

755 rwxr-xr-x

The owner can read, write, and execute; the group and everyone else can read and execute but not modify.

Permission breakdown

When to use 755

Common mistakes & gotchas

755 vs the alternatives

Set it with chmod

Apply this permission to a single file:

chmod 755 filename

Or apply it recursively to a directory and everything inside it:

chmod -R 755 directory/

The same thing in symbolic form:

chmod u=rwx,g=rx,o=rx filename

Frequently asked questions

What does chmod 755 mean?

chmod 755 sets permissions to rwxr-xr-x: the owner can read, write and execute; the group and others can read and execute but not modify.

Is chmod 755 safe?

Yes for directories, scripts and public web files — it grants read and execute but not write to anyone but the owner. Avoid it for files containing secrets, since others can still read them.

Should I use 755 or 644?

Use 755 for directories and for files that must run (scripts, binaries). Use 644 for plain files that only need to be read. The execute bit is the difference.

Why does a directory need 755 and not 644?

A directory needs the execute (x) bit so it can be entered and traversed. 644 has no x, so you could not cd into it or reach the files inside.

Other common permissions

Or build any permission with the interactive chmod calculator.