chmod 000 (---------)

chmod 000 gives the owner no permissions, the group none, and everyone else none. No permissions; only root can access it.

000Octal
----------ls -l (file)
u=,g=,o=Symbolic chmod

Change bits in the chmod calculator →

Breakdown

ClassDigitSymbolicReadWriteExecute
Owner (u)0---———
Group (g)0---———
Others (o)0---———

owner 0 = 0 · group 0 = 0 · others 0 = 0

Commands

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

Applied to a directory

Things to know

Related modes

Frequently asked questions

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