]> git.cameronkatri.com Git - pw-darwin.git/commit
Extend adduser to create "locked" accounts. Adduser can now lock an
authorAdrian Chadd <adrian@FreeBSD.org>
Wed, 2 May 2001 13:20:12 +0000 (13:20 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Wed, 2 May 2001 13:20:12 +0000 (13:20 +0000)
commit116cf850c2fdb2dba6489e0e7148ed4de08a3c6a
tree46f742f3272f035315886e6e0af0320bca09bb4e
parent3c157fd7695cd9c226439be6767f10a452e1b6cc
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
adduser/adduser.perl