pw create home dir issue
unga888 at yahoo.com
Wed Apr 23 03:06:48 UTC 2008
--- Matthew Seaman <m.seaman at infracaninophile.co.uk>
> -----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
> > can be used. I don't have a /etc/pw.conf. I also
> > -d /home/, but it still doesn't create the home
> > directory.
> > Have I made a mistake or is there a error in pw. I
> > FreeBSD 7.0.
> Hmmm.... I vaguely remember running into this around
> the turn of the
> millenium. Excuse me while I dust off those
> 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
> 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.
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the freebsd-questions