chmod 606 (rw----rw-)

chmod 606 gives the owner read, write permissions, the group none, and everyone else read, write.

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

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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