Date: Wed, 22 Aug 2001 17:10:16 +0300 From: Yonatan Bokovza <Yonatan@xpert.com> To: 'Odhiambo Washington' <wash@wananchi.com>, FBSD-Q <freebsd-questions@freebsd.org> Subject: RE: One for the script gurus Message-ID: <EB513E68D3F5D41191CA00025558810150D63D@mailserv.xpert.com>
next in thread | raw e-mail | index | archive | help
hmm, here: awk -F: '{print $6}' /etc/passwd | grep home | xargs mkdir you migh also want do do this: cd /home for A in `ls -1`; do chown $A.$A $A; done; Regards, Yonatan. > -----Original Message----- > From: Odhiambo Washington [mailto:wash@wananchi.com] > Sent: Wednesday, August 22, 2001 16:37 > To: FBSD-Q > Subject: One for the script gurus > > > You have your /etc/passwd file and from it you want to create a home > directory for every user in it. I am imagining how to extract > that info > from the file and use it to feed some script that would do > what I want. > I am imagining some emergency situation where my /home tape backup has > goofed. > I leave it you to, please. > > Thanks. > > -Wash > > -- > Odhiambo Washington > Wananchi Online Ltd., > wash@wananchi.com 1st Flr Loita Hse. > Tel: 254 2 313985 Loita Street., > Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. > > In case of doubt, make it sound convincing. > 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?EB513E68D3F5D41191CA00025558810150D63D>