From owner-freebsd-questions Tue Sep 17 7: 5:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20FA637B401 for ; Tue, 17 Sep 2002 07:05:34 -0700 (PDT) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB1943E77 for ; Tue, 17 Sep 2002 07:05:33 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198]) by be-well.ilk.org (8.12.6/8.12.5) with ESMTP id g8HE5RLm010267; Tue, 17 Sep 2002 10:05:27 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id g8HE5MVC010264; Tue, 17 Sep 2002 10:05:22 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: "Janine C.Buorditez" Cc: questions@FreeBSD.ORG Subject: Re: user organizer / decent adduser script References: <20020917142603.562ac3e5.johann@broadpark.no> From: Lowell Gilbert Date: 17 Sep 2002 10:05:22 -0400 In-Reply-To: <20020917142603.562ac3e5.johann@broadpark.no> Message-ID: <44k7lku2xp.fsf@be-well.ilk.org> Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Janine C.Buorditez" writes: > is there some tool that organizes a systems users and their uids? and perhaps > updates all files belonging to a user with his/hers new user settings? I don't know of a tool like this. That's probably because it wouldn't be generally useful; to keep backups useful, sysadmins generally bend over backward to avoid changing UIDs or GIDs. If you need to do it once, brute force with find(1) and chown(8) is pretty easy. > also, what about a decent adduser script? enteruser complains about my `ninja' > class which i've set up in login.conf and as default class in pw.conf. also it > doesn't seem to make any use of my defaultshell set to tcsh. adduser(8) handles all of those issues fine in my experience. And it's just a perl script, so for my own specialized needs, I've had no problem just hacking up a customized version. > after a while the directory listing of my /var/mail looks like this: > > total 14 > -rw------- 1 iyun mail 584 Sep 7 13:44 alliance > -rw------- 1 power 1006 574 Jun 22 12:49 gunn > -rw------- 1 1011 ninja 594 Aug 27 19:55 iyun > -rw------- 1 sharizan postfix 0 Jun 22 11:41 jasmin > -rw------- 1 janine mail 1470 Sep 17 14:05 janine > -rw------- 1 postfix 1006 0 Jun 14 01:00 nughaud > -rw------- 1 pgsql pgsql 0 Sep 6 00:03 pgsql > -rw------- 1 thug ninja 575 Jun 21 21:08 power > -rw------- 1 jasmin ninja 590 Jun 13 16:25 sharizan > -rw------- 1 postfix postfix 578 Jun 21 21:08 thug > > now, this is all a mess. i'm tired of manual cleanups. any ideas people? How did those group names (and user names) change in the first place? I've *never* seen that happen, except when it was something I screwed up myself. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message