Hi,
I changed by mistake the root permissions of my server (Centos7/Vestacp/IONOS) as showed in the picture (https://drive.google.com/file/d/1-7sWER ... sp=sharing).
For this reason, I am unable to connect via SSH and my vesta panel login is unavailable.
The root login works only via KVM console. My sites are still working well.
How can I restore my default root permissions (i.e., set the right root permissions again)?
Thanks
How to fix root permissions in Centos 7?
Re: How to fix root permissions in Centos 7?
There is at least yum reinstall
Re: How to fix root permissions in Centos 7?
rpm --restore -a will do as well.
Re: How to fix root permissions in Centos 7?
To reset user/group ownership of files in all packages:
To reset permissions of files in all packages:
Code: Select all
for p in $(rpm -qa); do rpm --setugids $p; done
Code: Select all
for p in $(rpm -qa); do rpm --setperms $p; done