From owner-freebsd-questions Thu Sep 21 8:40:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id 9084E37B43E for ; Thu, 21 Sep 2000 08:40:04 -0700 (PDT) Received: from vedette by siafu.iconnect.co.ke with local (Exim 2.12 #1) id 13c8Qy-0006Kt-00 for freebsd-questions@FreeBSD.org; Thu, 21 Sep 2000 18:38:48 +0300 Date: Thu, 21 Sep 2000 18:38:48 +0300 From: Odhiambo Washington To: FreeBSD-Questions Subject: RECOVERY Message-ID: <20000921183848.G12637@siafu.iconnect.co.ke> Mail-Followup-To: FreeBSD-Questions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en fr X-Editor: Pico http://www.washington.edu/pine X-Location: Mombasa, Kenya, East Africa X-Uptime: 6:31PM up 24 days, 7:22, 6 users, load averages: 0.19, 0.26, 0.24 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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