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

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments