[3230] in RedHat Linux List
Re: chown as root
daemon@ATHENA.MIT.EDU (Borg)
Thu Nov 7 17:51:27 1996
Date: Thu, 07 Nov 1996 11:06:40 -0800
From: Borg <"vladimip "@iceonline.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Jason Benderly wrote:
.....
> 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!!
I don't see any other way but to change in each
directory and issue:
chown root *
chgrp root *
for hidden files:
chgrp root .*
chown root .*
A bash script can speed up the process but I am not
sure how I'd handle that.
--
*** #include <disclaimer.h> ***** Good pings come in small packets
******** Vlad Petersen ********** ********************************
*** <vladimip@iceonline.com> **** **** Linux: OS I can trust *****
******** Vancouver, B.C. ******** ********************************
--
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