I
I
Ivan Melnikov2018-12-21 11:34:56
linux
Ivan Melnikov, 2018-12-21 11:34:56

How to set permissions on all folders and files in a source folder in Linux, except for one folder?

sudo chmod -R 777 /dir ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vanoc, 2018-12-21
@Zoro

Something like this
find /path -type d -not -path path/to/excludedir -exec chmod 777 {} \;
find /path -type f -exec chmod 777 {} \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question