chmod 466 (r--rw-rw-)

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

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

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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