I want to make an chmod command that's recursively will apply the privilegies to all directoris under that. Example:
chmod 666 /usr
I want that every directory under "/usr" turn into permissions to 666.
Thanks in advance.
First, please learn to read man pages:
$ man chmod
Partway down that page, you will see:
-R, --recursive
change files and directories recursively
And there's your answer.
man
for chmod is pages and pages long -- that's the point why OP is here). Here is the real answer: chmod 666 -R /usr
Jun 9, 2020 at 3:49
/usr
. There are good reasons that linux distributions set the permissions they do, and it is at your own peril to change them in such a drastic fashion./usr
, well, you might as well walk around all day with your pants down.chmod -R 666 /usr
not provide the desired results?