• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Restoring original directory permissions

I

ideawire_bb

Guest
I ran a script in a domain and hosed the permissions on that directory and a few levels above. Is there a utility that exists that will restore permissions on the directory?

I can't just re-create the domain since a large number of mail accounts exist and recreation will be a hassle.

Any help will be appreciated.
 
Right there with you brother. I have hosed the /usr/local/psa and everthing under it. Anyone got a script to restore it??

TIA
 
I had the joy of manually restoring /home/httpd/vhost/... for all the system domains.

Be careful with root kids.

There should be some sort of script that checks the permissions recursively and corrects them if wrong. This would likely solve a number of errors that come up as a result of incorrect permissions.
 
I eventually got it working agaon chmod -R 4777 /usr/local/usr/ *

Not ideal but it worked.
 
Back
Top