From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 08:23:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B82D4106566B for ; Tue, 22 Apr 2008 08:23:31 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.tilbu1.nb.home.nl (smtpq1.tilbu1.nb.home.nl [213.51.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6F49C8FC19 for ; Tue, 22 Apr 2008 08:23:31 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [213.51.146.190] (port=55843 helo=smtp1.tilbu1.nb.home.nl) by smtpq1.tilbu1.nb.home.nl with esmtp (Exim 4.60) (envelope-from ) id 1JoDmj-0001au-W1; Tue, 22 Apr 2008 10:23:30 +0200 Received: from cp268254-a.landg1.lb.home.nl ([84.25.65.88]:4878 helo=ra.egypt.nl) by smtp1.tilbu1.nb.home.nl with esmtp (Exim 4.60) (envelope-from ) id 1JoDmj-0006Wc-FP; Tue, 22 Apr 2008 10:23:29 +0200 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 2670539803; Tue, 22 Apr 2008 10:23:29 +0200 (CEST) Message-ID: <480DA07F.4030905@boosten.org> Date: Tue, 22 Apr 2008 10:23:27 +0200 From: Peter Boosten User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Unga References: <745411.61636.qm@web57004.mail.re3.yahoo.com> In-Reply-To: <745411.61636.qm@web57004.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080421-1, 04/21/2008), Outbound message X-Antivirus-Status: Clean X-Spam-Score: 1.5 (+) Cc: freebsd-questions@freebsd.org Subject: Re: pw create home dir issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2008 08:23:31 -0000 Unga wrote: > Hi > > I cannot get the pw to create a new user's home > directory. Here is what I used: > > pw -V /etc useradd -n test \ > -c "Test User" -b /home/ \ > -G "wheel,operator" -m -M 0700 \ > -k /etc/skel/ -s /usr/local/bin/bash > > It creates the user without user's home directory. > Once home directory is created manually, the account > can be used. I don't have a /etc/pw.conf. I also used > -d /home/, but it still doesn't create the home > directory. > I use it without the slash: adduser -d /home -q -s /usr/local/bin/rzsh Works like charm Peter -- http://www.boosten.org