chmod 715 (rwx--xr-x)

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

715Octal
-rwx--xr-xls -l (file)
u=rwx,g=x,o=rxSymbolic chmod

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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