From owner-freebsd-questions Tue Sep 17 6: 4:11 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 3D5EC37B401 for ; Tue, 17 Sep 2002 06:04:10 -0700 (PDT) Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F33A43E3B for ; Tue, 17 Sep 2002 06:04:09 -0700 (PDT) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 4491C4FC98; Tue, 17 Sep 2002 09:05:29 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 3F3844A0D; Tue, 17 Sep 2002 09:05:29 -0400 (EDT) Date: Tue, 17 Sep 2002 09:05:29 -0400 (EDT) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: "Janine C.Buorditez" Cc: questions@FreeBSD.ORG Subject: Re: user organizer / decent adduser script In-Reply-To: <20020917142603.562ac3e5.johann@broadpark.no> Message-ID: 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 > Date: Tue, 17 Sep 2002 14:26:03 +0200 > From: Janine C.Buorditez > To: questions@FreeBSD.ORG > Subject: user organizer / decent adduser script > > hi. > > 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? > > 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. > > 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? > > thanks. > > -- janine > adduser(8), rmuser(8) ? I've simply scripted around these two utilities. IMHO keeping UIDs/GIDs straight and/or orderly is highly subjective and it's up to *you* to lay it out as you see fit. JB # John Bleichert # http://vonbek.dhs.org/latest.jpg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message