chmod 557 (r-xr-xrwx)

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

557Octal
-r-xr-xrwxls -l (file)
u=rx,g=rx,o=rwxSymbolic chmod

Change bits in the chmod calculator →

Breakdown

ClassDigitSymbolicReadWriteExecute
Owner (u)5r-x✔—✔
Group (g)5r-x✔—✔
Others (o)7rwx✔✔✔

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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