Answer the question
In order to leave comments, you need to log in
How to return the correct rights to the folders and directories of the server?
Hello.
The situation is this:
I wanted to set the rights for the new site on Wordpress. I copied the command and pasted it into the console without going to the folder with the site . They are automatically completed...
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
Answer the question
In order to leave comments, you need to log in
What folder were you in when you ran these commands? By default, if you open the console and do not go anywhere, you will end up in the user's home directory, you can change anything inside
Options:
1. Save important data, reinstall OS from scratch and restore data.
2. Install the OS from scratch on a virtual machine separately with the same set of packages, go through all the folders and save their access rights to some file, then apply the rights from the file on the damaged system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question