From owner-freebsd-bugs@FreeBSD.ORG Sat Nov 17 18:09:27 2007 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03CE616A421 for ; Sat, 17 Nov 2007 18:09:27 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id CB8BF13C447 for ; Sat, 17 Nov 2007 18:09:26 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1059715rvb for ; Sat, 17 Nov 2007 10:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=eCQGgT2+HXMVQKdi9zmcvX4IReXAOmP+AQEQGgCznC0=; b=nbxfcOJTr2nW39y/Y81KNUBEMTCiuWhhkwvtwO73FqdpsxUb7fNxhIbPnSGBgOO7TBDof5nuKYbhJGovYYvhxHrvgFsgcQTlxjbIHqtG8k47s0qHt1BBrD+X4kmrMKtB9eZGKXzcXzVdjFDOW13z520g9KbRUPf8Tjbp5CMcB+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=A3RmU3LubNAbIyS/PYIWP+IggmtphVFie6du+d1Ip9N2LGF7u4GjSCDl2YYk0e5SrfnUiZk5Y4yBzWIJ5wqzdEn3j0My3N0Ghr/i3r+4v2IhpSM/9ipIySSJHHHhp871R8dj/ES0+PQb7tfaV+6PICWauAijRO4TtlFofrekfPQ= Received: by 10.141.44.13 with SMTP id w13mr1235830rvj.1195321369960; Sat, 17 Nov 2007 09:42:49 -0800 (PST) Received: by 10.141.211.5 with HTTP; Sat, 17 Nov 2007 09:42:49 -0800 (PST) Message-ID: <9bbcef730711170942yf10ab4ia104c86a620263f8@mail.gmail.com> Date: Sat, 17 Nov 2007 18:42:49 +0100 From: "Ivan Voras" Sender: ivoras@gmail.com To: "remko@freebsd.org" In-Reply-To: <200711161103.lAGB3qlU002739@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711161103.lAGB3qlU002739@freefall.freebsd.org> X-Google-Sender-Auth: 7fd9b9f8520c1684 Cc: freebsd-bugs@freebsd.org Subject: Re: bin/117751: Make pw(8) support "-d" argument X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2007 18:09:27 -0000 On 16/11/2007, remko@freebsd.org wrote: > Synopsis: Make pw(8) support "-d" argument > As discussed in private, -d is currently being used in pw useradd for > example to specify what the homedirectory of the user will be, the > option you are talking about could not be found by my (quick) check of > the manual, could you please specify this? My idea is to make pw useradd honor the -d argument, not introduce a new one. For example: BEFORE the patch: > ls -l /home/ total 2 drwxr-xr-x 29 ivoras ivoras 1536 Nov 10 19:30 ivoras/ > ls -ls /buildcd/livecd/home/ total 0 # pw -V /buildcd/livecd/etc useradd test -G wheel -m -d /buildcd/livecd/home/test # ls -l /home/ total 2 drwxr-xr-x 29 ivoras ivoras 1536 Nov 10 19:30 ivoras/ # ls -l /buildcd/livecd/home/ total 0 finstall:/buildcd/livecd/etc# # tail -n1 /buildcd/livecd/etc/passwd test:*:1001:1002:User &:/buildcd/livecd/home/test:/bin/sh AFTER the patch: # pw -V /buildcd/livecd/etc useradd test -G wheel -m -d /buildcd/livecd/home/test # ls -l /home/ total 2 drwxr-xr-x 29 ivoras ivoras 1536 Nov 10 19:30 ivoras/ # ls -l /buildcd/livecd/home/ total 2 drwxr-xr-x 2 1002 1002 512 Nov 16 09:36 test/ This is the intended behaviour: ^^^^^^^^^^^^^^^^^^^^^^^^^^