Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2000 08:48:04 -0700 (PDT)
From:      <keith@mail.telestream.com>
To:        Odhiambo Washington <vedette@iconnect.co.ke>
Cc:        FreeBSD-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: RECOVERY
Message-ID:  <Pine.LNX.4.10.10009210847230.18216-100000@mail.telestream.com>
In-Reply-To: <Pine.LNX.4.10.10009210843260.18141-100000@mail.telestream.com>

next in thread | previous in thread | raw e-mail | index | archive | help
OOoopps messed that up.  should be.
LS=`ls /home`



=================================
Keith W.
At the helm <for better or worse>

My non work related site
www.cydonia.net
=================================


On Thu, 21 Sep 2000 keith@mail.telestream.com wrote:

> Something like this would work.
> 
> #!/bin/sh
> LS="/home"   #or what ever the path is.
> 
> for name in $LS
> do
> 	chown -R $name.$name /home/$name
> done
> 
> 
> 
> =================================
> Keith W.
> At the helm <for better or worse>
> 
> My non work related site
> www.cydonia.net
> =================================
> 
> 
> On Thu, 21 Sep 2000, Odhiambo Washington wrote:
> 
> > I was working with a trainee under me (he's learning abit of UNIX from a
> > novice who is me ;-)). This is on a TESTING BOX so this guy logs in as
> > root, cd /usr/home where we have about 80 directories with various
> > owners!!
> > Then what does he do? he did chwon -R * some_user
> > Now I need to rename the folders to the rightful owners.
> > I sound quite comfortable about this but I DO NOT know how I can do it.
> > Someone MUST be knowing  how some script can help me do that, especially
> > because the users have uniq uids in the /etc/passwd..somehow??????
> > 
> > Thanks in advance.
> > 
> > Wash
> > 
> > --
> > Odhiambo Washington
> > Systems Administrator
> > Inter-Connect Ltd.
> > 3rd Flr The Chancery
> > Valley Rd
> > PO Box 39519 Nairobi, KENYA
> > Tel: 254 2 711140
> > Fax: 254 2 718418
> > 
> > If little else, the brain is an educational toy. -Tom Robbins 
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10009210847230.18216-100000>