> -----Original Message----- > From: centos-bounces at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of David A. Woyciesjes > Sent: Monday, February 12, 2007 3:35 PM > To: CentOS > Subject: [CentOS] chown command goof up > > Basically, what I typed was: > chown -R user2:user2 * > chown -R user2:user2 .* > chown -R user2:user2 *.* > ...all in /home. Duh. I forgot which way recursive went. > So, I then did: > chown -R root:root * > chown -R root:root .* > chown -R root:root *.* > ...this time in / to try and f things. Duh again. Other items need to > have other owners & groups. > > So, how can I fix this? In MacOSX, there is a utility > to fix all > permissions on the system. Is there a similar item in CentOS? > > Here's what I originally wanted to do: > Started with user1. Got everything setup just right. Then > created user2. > I wanted to use all the settings, mail, etc. from user1 for user2. My > thought was to just copy everything in /home/user1 to > /home/user2, then > use chown on all of the files. This is where I got myself into this > pickle... > > Any ideas? In case nobody just comes out and says it. # rpm --setperms `rpm -qa` # rpm --setugids `rpm -qa` Should fix it. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.