chmod 464 (r--rw-r--)

chmod 464 gives the owner read permission, the group read, write, and everyone else read.

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

Change bits in the chmod calculator →

Breakdown

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

owner 4 = 4 · group 6 = 4 + 2 · others 4 = 4

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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