M
M
mills2018-12-05 08:03:47
SSH
mills, 2018-12-05 08:03:47

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

2 answer(s)
K
krypt3r, 2018-12-05
@mills

More or less like this

find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

S
Sergey, 2018-12-05
@feanor7

-R - recursively, i.e. for the directory and everything inside, don't use this option and that's it)
www.opennet.ru/man.shtml?category=1&topic=chmod

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question