To reset permissions that were originally set by packages installed as rpm, try the following: for x in `rpm -qa`; do rpm --setperms $x; done This will change the permissions back to what they used to be. --James Cooley > El Jueves 31 Marzo 2005 15:07, Burke, Thomas G. escribió: >> All, >> >> I think I've screwed up... I accidently did a chmod -R 777 * from the >> "/" directory (thought I was somewhere else) as root. At the time, I >> thought nothing of it, as I figured that if everything had 777 >> permissions, >> while it needed fixed, it wouldn't hose things up. I appear to be >> wrong. >> Mail has stopped working. I can't log in... Looking through the logs >> leeds me to believe that maybe the permissions are screwing things up, >> but >> I'm not sure. >> >> Any clues? >> >> Thanks, >> Tom > > In order to avoid attacks or avoid some users look into /root or /home/* > you > can do chmod -R 755 * > Then you can search for a best solution, but, i recommend you to do as > quicly > as you can chmod 755. > Do you have a backup created with the option -p (keep permission)? If you > got > it you can restore your system from it. > > Cheers > > -- > Manuel Arostegui Ramirez #Linux Registered User 295750 > Socio de Hispalinux 1813 > Red Hat Linux 9, Kernel 2.6.2 ReiserFS > Firma cifrada > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > iD8DBQE+3O1MqfmPcHTj+twRAm > yDAJ9P6ezepIMg06vOet/YPKxVoB+Z/ACfWVhh > ---END PGP SIGNATURE----- > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list