From owner-freebsd-questions@FreeBSD.ORG Tue Jan 8 00:07:24 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B69AF6D3; Tue, 8 Jan 2013 00:07:24 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id D9425E7F; Tue, 8 Jan 2013 00:05:30 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id r0805C5v016147 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 7 Jan 2013 18:05:12 -0600 Received: from [10.0.0.102] (10.14.152.61) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.2.309.2; Mon, 7 Jan 2013 18:05:10 -0600 Subject: Re: User IDs MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="windows-1252" From: Devin Teske In-Reply-To: <20130108001956.a7b780f2.freebsd@edvax.de> Date: Mon, 7 Jan 2013 16:05:03 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: <1F0F45D7-D676-4529-9FF8-6676E5D0A017@fisglobal.com> References: <20130108001956.a7b780f2.freebsd@edvax.de> To: Polytropon X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-01-07_06:2013-01-07,2013-01-07,1970-01-01 signatures=0 Cc: Devin Teske , FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 00:07:24 -0000 On Jan 7, 2013, at 3:19 PM, Polytropon wrote: > 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 adde= d 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 do= n't >> match. I can login as root and use chpass and change the user ids but th= en >> I must go through add they files on the new box change uids and gids. >>=20 >> Question is there an easier way?? >=20 > 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. >=20 > 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. >=20 bsdconfig should be considered the GUI wrapper. I plan to demo it at BSDCan-2013, but you can already play with it now (its= quite mature). To use bsdconfig, check out HEAD and perform a "make all install" from the = "usr.sbin/bsdconfig" directory. Then, w/respect to the OPs topic=85 (on the command-line): bsdconfig useradd (for GUI): bsdconfig -X useradd NOTE: GUI requires Xdialog from ports --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.