From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 03:06: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 B0D4E106564A for ; Wed, 23 Apr 2008 03:06:48 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57001.mail.re3.yahoo.com (web57001.mail.re3.yahoo.com [66.196.97.105]) by mx1.freebsd.org (Postfix) with SMTP id 79B9F8FC18 for ; Wed, 23 Apr 2008 03:06:48 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 27410 invoked by uid 60001); 23 Apr 2008 03:06:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=XhQ3hmJqeki39Q/DPVK1IjVn2Zb8Tr/bKq7ApPYXhjdgVgvhTQu3QiIqqmHr+8lIKJgRNSg8nFz5IykxFOG0JdL996po/Q9XccDnr3nvJWq+SkrK5/T2Q0Z03P8iLjt3mfR7SniIWZx/m5dlRzm2GZLYdb/CjmVZkFSXMa6DS24=; X-YMail-OSG: AB.j66UVM1krOFzNShLILp_mn99BJc7P0F3dCSV6bexjAwrPzycqaE_oSF9OAgVwTyBhC4JeVTAHswlsJ51N0BFzD7Vvpv8VM3kYc5kM9bm_A2YQGxCGNpESqOU- Received: from [165.21.154.115] by web57001.mail.re3.yahoo.com via HTTP; Tue, 22 Apr 2008 20:06:47 PDT Date: Tue, 22 Apr 2008 20:06:47 -0700 (PDT) From: Unga To: Matthew Seaman In-Reply-To: <480DFE44.6050908@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <593518.27156.qm@web57001.mail.re3.yahoo.com> 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: Wed, 23 Apr 2008 03:06:48 -0000 --- Matthew Seaman wrote: > -----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. > Hi Dr. Seaman, thanks for reply. Yep, without -V, pw creates home directories. In my opinion, since this is a known issue, the -V etcdir section of pw(8) may be updated or introduce a "Known Issues" section to pw(8), to avoid this issue coming up again and agin. Kind Regards Unga ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ