pw create home dir issue
m.seaman at infracaninophile.co.uk
Tue Apr 22 15:03:48 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
> 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
> 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
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.
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
-----END PGP SIGNATURE-----
More information about the freebsd-questions