Quote:
Originally Posted by itdungpt
please help me restore chown default centos
|
Distributions using the RPM package manager can recover permission settings from the RPMDB running 'rpm' with the "--setperms --setugids" switches. The problem is you have to
run the process as root user. If no root shell remains open or can be opened then you could check if you can alter a crontab that runs processes as root. If that doesn't work and you don't have Out of Bounds access then you probably have to ask your hosting company to restore a backup for you.
Quote:
Originally Posted by itdungpt
i use centos with cpanel (..) chown -hR root.root /
|
You realize now that root is omnipotent and that you should not run commands you don't understand the consequences of. Also be aware that
being able to click buttons in a web-based management panel does not make you an admin. I strongly suggest you read some basic "
Learning the Linux Command Line" tutorials and the standard documentation that Centos comes with to avoid fscking up like that again. You may think that it's all OK since it's your server but
Linux is the networked OS. So what goes wrong with or behind your lines of defense may adversely affect others on the 'net as well.
Linux may be free to use but using it is not free of responsibilities.