chmod 406 (r-----rw-)

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

406Octal
-r-----rw-ls -l (file)
u=r,g=,o=rwSymbolic chmod

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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