D
D
Dmitry2015-12-24 09:38:33
ubuntu
Dmitry, 2015-12-24 09:38:33

How to set permissions to directories only in Ubuntu?

Hello dear!
Can you please tell me how to set the rights to a directory and all directories nested in it recursively in Ubuntu, but not touch the files? That is, the usual
chmod -R /
one does not roll, because it also changes to files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2015-12-24
@seventh

find /path -type d -exec chmod 700 {} \;
-type d - apply to directories only

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question