Riny Qian writes:
> After chmod'ing -R 777 /etc/ by accident, the system refuses to login, and 
> complains about the wrong permission on /etc/pam.conf.
> 
> chmod 777 would remove setuid, setgid and the sticky bit from all files.
> 
> How to recover from it quickly?
> 
> Tried to chmod back /etc/pam.conf to 644 via booting from a CD, but it still 
> didn't work.

"pkgchk -af -P /etc -R /a" should do the trick, assuming that you've
booted from a CD and mounted your root file system on /a.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to