chmod 440 — what r--r----- means

440 r--r-----

Owner and group can read only; nobody can write or execute; others have no access.

Note: this grants group or shared write access — fine for team directories, but make sure that is what you intend.

Permission breakdown

When to use 440

Common mistakes & gotchas

440 vs the alternatives

Set it with chmod

Apply this permission to a single file:

chmod 440 filename

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

chmod -R 440 directory/

The same thing in symbolic form:

chmod u=r,g=r,o= filename

Frequently asked questions

What does chmod 440 mean?

chmod 440 sets permissions to r--r-----: the owner and the file's group can read it, while everyone else gets no access. No one can write or execute. It is used for group-readable secrets and read-only shared configs.

When should I use 440 instead of 400?

Use 440 when more than one account needs to read the file and those accounts share a group — for example several services reading one credential. Use 400 when only a single owner account should ever read it.

What is the difference between 440 and 640?

640 lets the owner write the file; 440 removes write for everyone, including the owner. Choose 640 for group-readable config you still edit, and 440 when you also want to protect the file from accidental modification.

How do I make sure the right users can read a 440 file?

Set the file's group with chown owner:group file so it matches the group whose members need read access, then confirm membership with getent group groupname. Only owner and members of that group can read a 440 file.

Other common permissions

Or build any permission with the interactive chmod calculator.