Search tools

Linux file permissions

chmod 444: what it means and when to use it

chmod 444 sets a file to read-only for the owner, group and world.

444 r--r--r--
What chmod 444 allows for each class of user
WhoDigitRead WriteExecute
Owner 4 Yes No No
Group 4 Yes No No
Everyone else 4 Yes No No

How chmod 444 works

All three octal digits are 4 (read only). Nobody can run it as a program and nobody can edit it directly without raising permissions first.

System administrators use 444 for signed vendor files, license notices and static manifests that should stay untouched while remaining readable to every account.

Where 444 belongs

  • Static manifests, schemas and license texts readable system-wide
  • Read-only configuration templates shared across accounts
  • Archived reference files left open for inspection

The command

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

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

Anyone with write access to the parent directory can still unlink and replace a 444 file unless the parent directory permissions are also tight.

Open 444 in the chmod calculator