Answer the question
In order to leave comments, you need to log in
How to edit SSH file and folder permissions?
Hello!
Please tell me how to edit file permissions separately and to folders separately on SSH Linux.
I did chmod -R 755 /path/name_of_directory_or_file - but this gives 755 permissions to all folders and files, and I need it separately for folders and separately for files.
Answer the question
In order to leave comments, you need to log in
More or less like this
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question