]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend adduser to create "locked" accounts. Adduser can now lock an
authoradrian <adrian@FreeBSD.org>
Wed, 2 May 2001 13:20:12 +0000 (13:20 +0000)
committeradrian <adrian@FreeBSD.org>
Wed, 2 May 2001 13:20:12 +0000 (13:20 +0000)
commitdf4ead11af402acaf7b1c90b9a7e79ffffce091b
tree5bfccd255c0459c2871409e4c7309312a9bda06a
parenta3c8b91e8eb2355576e69f7c407f40bc82279aad
Extend adduser to create "locked" accounts. Adduser can now lock an
account at creation, create accounts with a "*" password (so you can
use alternate authentication schemes without fearing a "default" password
biting you later), and blank passwords.

Yes, adduser could create a blank password account, but this makes it
slightly more difficult to shoot yourself in the foot.

The /etc/adduser.conf entries are:

# use password-based authentication for new users
# defaultusepassword =  "yes" | "no"
defaultusepassword = "yes"

# enable account password at creation
# (the password will be prepended with a star if the account isn't enabled)
# defaultenableaccount = "yes" | "no"
defaultenableaccount = "yes"

# allow blank passwords
# defaultemptypassword = "yes" | "no"
defaultemptypassword = "no"

Requested by: alfred
Reviewed by: alfred
usr.sbin/adduser/adduser.perl