chmod 460 (r--rw----)

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

460Octal
-r--rw----ls -l (file)
u=r,g=rw,o=Symbolic chmod

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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