[3427] in RedHat Linux List

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

re: chown as root

daemon@ATHENA.MIT.EDU (anthony)
Fri Nov 8 14:55:44 1996

Date: Fri, 8 Nov 1996 19:07:40 +0000 (GMT)
From: anthony <ac@achc.demon.co.uk>
To: redhat-list@redhat.com
In-Reply-To: <9611071753.ZM5018@platypus>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Thu, 7 Nov 1996, Jason Benderly wrote:

> Hi All,
> 
> 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!!
> 
> Vlad responded:
> 
> >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.
> 
> Vlad,
> 
> Thank you very much for replying to me.  I have no problem changing all
> the stuff to root.  But should everything be changed to root?  Shouldn't
> some files belong to bin,  or daemon,  or ...  Since I don't know the original
> owners I do not know what should be what...
> 
> Any suggestions?
> 
> Thanks
> 
> Jason

I'd say, don't do it.  I did it more or less by accident a week or so ago 
and subsequently various things didn't work.  I couldn't work out exactly 
what had gone wrong and ended by reinstalling everything on that /dev/.

Anthony

=================================================================
Anthony Campbell          * Using Linux *              London UK
email: anthony@achc.demon.co.uk  or acampbell@cix.compulink.co.uk
=================================================================      


--
  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