chmod 415 (r----xr-x)

chmod 415 gives the owner read permission, the group execute, and everyone else read, execute.

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

Change bits in the chmod calculator →

Breakdown

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

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

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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