• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Rights on /var/*

AHachmann

New Pleskian
Hi,
Me little dumm a** has run a command on /var/git to set rights and onwer without being cautious enough.
I have run chown git:git .* -R which did not only run direction downwards the tree but upwards as well :-(

Does anybody know if there is a way to reset permissions and ownership for the directories back to standard?
I tried /usr/local/psa/bin/repair already. Did lot of the fixes, but not all is in line yet.

I would be very happy, if someone could lead me to a good trick.

Regards,
Alex
 
Well, you did not only change the permissions for files, you changed them for directories as well. There is no "redo" - function for such commands, so it is wise to re-install the complete server, because the investigations for the right permissions will take hours/days for the whole /var/* - directory.

... ah... and for the next time... you now see, that backups are necessary, if you "play" with your server. Before changing / editing things, you always should have made a backup before.
 
Back
Top