[3142] in RedHat Linux List

home help back first fref pref prev next nref lref last post

chown as root

daemon@ATHENA.MIT.EDU (Jason Benderly)
Thu Nov 7 09:35:08 1996

Date: Thu, 7 Nov 1996 09:30:28 -0500 (EST)
From: Jason Benderly <jbenderl@painewebber.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Hi,

Did something very stupid while I wasn't paying attention.

I moved some directories that were owned by root to a user account.
I then wanted to change the ownership of those directories to the user account.
I did not realize what directoy I was in when I issued the chown command.
Now,  the user account owns everything on my system.  Imagine going into
/sbin and seeing that everything is owned by user account joebloe!!

How do I get permissions back to what they were without doing a re-install.

I noticed that when I do an ls -als,  there is a group ownership field.  It
seems
that every user has their own group also.  Could I write a script that extracts
the
group name and chowns it to the group name?  Would this be reliable?

Thanks for any help!!!!

Jason :-(


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post