Date: Fri, 22 Sep 2000 08:51:30 +0400 From: Igor Roboul <igor@raduga.dyndns.org> To: FreeBSD-Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: RECOVERY Message-ID: <20000922085130.H1004@linux.rainbow> In-Reply-To: <Pine.LNX.4.10.10009210843260.18141-100000@mail.telestream.com>; from keith@mail.telestream.com on Thu, Sep 21, 2000 at 08:46:36AM -0700 References: <20000921183848.G12637@siafu.iconnect.co.ke> <Pine.LNX.4.10.10009210843260.18141-100000@mail.telestream.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 21, 2000 at 08:46:36AM -0700, 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 Or in csh: #!/bin/csh -f cd /home foreach i ( * ) test -d $i if( $? == 0 ) then # We dont wish change owner of quota.user or other files? chown -R $i.$i $i endif end -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 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?20000922085130.H1004>