TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

owners and perms on RedHat linux



I just had a user do a chmod -R 770 /etc and and chown me.users /etc, so they
could edit the files by hand as themselves.

Needless to say this was not a good thing.

What is the quickest what to restore the owners and perms on the /etc
directory under Redhat 5.2?

I am think it is 

# rpm --setperms `rpm -qa`
# rpm --setugids `rpm -qa`

Any way just to get the /etc directory instead of all packages?


-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9