From owner-freebsd-questions@FreeBSD.ORG Mon Jan 7 23:20:01 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D19BB7FA for ; Mon, 7 Jan 2013 23:20:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9D319C12 for ; Mon, 7 Jan 2013 23:20:01 +0000 (UTC) Received: from r56.edvax.de (port-92-195-31-80.dynamic.qsc.de [92.195.31.80]) by mx01.qsc.de (Postfix) with ESMTP id B37AD3CA7B; Tue, 8 Jan 2013 00:19:53 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r07NJuep004088; Tue, 8 Jan 2013 00:19:56 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 8 Jan 2013 00:19:56 +0100 From: Polytropon To: Don Dugger Subject: Re: User IDs Message-Id: <20130108001956.a7b780f2.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2013 23:20:01 -0000 On Mon, 7 Jan 2013 11:49:48 -0800, Don Dugger wrote: > The question is about dealing with adding users. I been using NIS for a > while now it works ok however I've had to keep good notes on how to do > thing mainly because I don't add user or boxes very often. I'm a software > engineer not a system admin so I not clean on what the best way to deal > with things like this. The problem is when I added a PC-BSD box and added a > user with the GUI admin stuff provided it did not let me specify the user > id so now the users file that are on the nfs mounted drives user id's don't > match. I can login as root and use chpass and change the user ids but then > I must go through add they files on the new box change uids and gids. > > Question is there an easier way?? If the GUI tool of PC-BSD doesn't cover the specific need you have, use the CLI equivalent. If you need an interactive way of adding users, use "adduser", and if you have some time, read "man pw" and use "pw useradd" (and maybe "pw usermod") which will cover nearly all imaginable cases. The advantage of pw is that you can easily script and automate things. If urgently needed, you could create a GUI wrapper with Tcl/Tk, but you'll probably find that the CLI tool is much easier to use. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...