Linux – Restoring standard file and directory permission

 

Find all the directories that are on the path "/home/artem" and set them with the standard rights to the directory "755", also find all the files and set the rights "644"

find /home/artem -type d -exec chmod 755 {} \;
find /home/artem -type f -exec chmod 644 {} \;

 

Not all directories use the rights "755", for example for the directory ".ssh" the rights "600" are necessary

0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments