chmod 444 (r--r--r--)

chmod 444 gives the owner read permission, the group read, and everyone else read. Read-only for everyone.

444Octal
-r--r--r--ls -l (file)
u=r,g=r,o=rSymbolic chmod

Change bits in the chmod calculator →

Breakdown

ClassDigitSymbolicReadWriteExecute
Owner (u)4r--✔——
Group (g)4r--✔——
Others (o)4r--✔——

owner 4 = 4 · group 4 = 4 · others 4 = 4

Commands

chmod 444 file.txt
chmod u=r,g=r,o=r file.txt     # same thing, symbolic
chmod -R 444 folder/        # recursive (careful: applies to files and directories)
find folder -type f -exec chmod 444 {} +   # only files

Applied to a directory

Things to know

Related modes

Frequently asked questions

What does chmod 444 mean?
Owner: r--, group: r--, others: r--. In ls -l output a file with this mode shows -r--r--r--.
How do I set 444 with umask?
New files start from 666 and directories from 777, minus the umask. For new directories, umask 333 yields 444. For new files, umask 222 yields 444.