Quote:
Originally posted by tsayles21
My level of experience is Newbie that thinks he knows everything but really now nothing about linux.
I did something really bad I logged in as SU and typed
chown -R root:root 777 /
or something like it
at the root directory
now I get errors about permissions all the time
is there some way to put the original permissions back?
or
at least the permission back to when I install Linux?
SO far this site has helped me a lot.
Thanks for the help in the future.
|
Reinstall there is no way to track down the permissions on that many files and getting them right again. You may want to backup the /etc directory for future reference but not replacement of the new files and use
dpkg --get-selections > selections.txt and save the file then when reinstalled with a base system use after getting apt/dpkg working
dpkg --set-selections < selections.txt and
dselect update then
apt-get dselect-upgrade to get back the packages had installed before the incident.