diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-30 01:03:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-30 01:03:29 +0000 |
commit | ae07c46226164af866e3434cd0e57e09dbcbb519 (patch) | |
tree | 3efcc42c9d9511d8337435132921647e78d8fb4d /distrib/miniroot/install.sub | |
parent | 0aba4bfd3dba6db07e706b71d5e8715fd7e160e9 (diff) |
Allow the user's password to not be set, but in that case do not leave it
open, but * it out, since that is obviously what the administrator wants
ok krw
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index d49cf296871..6e35a4e783d 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.501 2009/04/30 01:01:56 deraadt Exp $ +# $OpenBSD: install.sub,v 1.502 2009/04/30 01:03:28 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -321,6 +321,7 @@ user_setup() { _n=$resp askpassword $_u + _encr="*" [[ -n "$_password" ]] && _encr=`/mnt/usr/bin/encrypt -b 8 -- "$_password"` echo "${_u}:${_encr}:1000:10::0:0:${_n}:/home/${_u}:/bin/ksh" \ >> /mnt/etc/master.passwd |