From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 15:03:48 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 4C612106564A for ; Tue, 22 Apr 2008 15:03:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 509888FC14 for ; Tue, 22 Apr 2008 15:03:47 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from lack-of-gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m3MF3Xn4058349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Apr 2008 16:03:39 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.5.3 smtp.infracaninophile.co.uk m3MF3Xn4058349 Message-ID: <480DFE44.6050908@infracaninophile.co.uk> Date: Tue, 22 Apr 2008 16:03:32 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.12 (X11/20080410) 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.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [81.187.76.162]); Tue, 22 Apr 2008 16:03:39 +0100 (BST) X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_FAIL autolearn=no version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk 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 15:03:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 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. > > Have I made a mistake or is there a error in pw. I use > FreeBSD 7.0. Hmmm.... I vaguely remember running into this around the turn of the millenium. Excuse me while I dust off those neurons... Yes -- if you use the '-V' switch to pw(8) it silently disables creating the home directory for new accounts. This comes up in the mailing lists occasionally: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2108497+0+archive/2001/freebsd-questions/20011028.freebsd-questions http://lists.freebsd.org/pipermail/freebsd-questions/2003-August/016200.html Since the default location for the password files is /etc, you don't need the '-V /etc' switch at all -- omit that, and you should find that user home directories get created for you. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkgN/kQACgkQ3jDkPpsZ+VaJ4wCfbm8Cgf2U8J4xj2XBtMT9/W+j KgEAnRtIEOgv3yYsJ9C2QAUtWOTZbNgG =tMAR -----END PGP SIGNATURE-----