chmod 646 (rw-r--rw-)

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

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

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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