chmod 674 (rw-rwxr--)

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

674Octal
-rw-rwxr--ls -l (file)
u=rw,g=rwx,o=rSymbolic chmod

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

What does chmod 674 mean?
Owner: rw-, group: rwx, others: r--. In ls -l output a file with this mode shows -rw-rwxr--.
How do I set 674 with umask?
New files start from 666 and directories from 777, minus the umask. For new directories, umask 103 yields 674. New files never get execute bits from umask alone, so add them with chmod.