summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-02-06 06:16:53 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-02-06 06:16:53 +0000
commit3d7a0029d0386797f86689a8681b561d296c7e9d (patch)
treed3b13121c24446d78c177572baf4bcd2ce010e78 /usr.sbin/adduser
parentbc0218ee3bffcfd0c180b2e2f5d63203de8051ca (diff)
Use quotes to protect the password hash from shell expansion. Update hash
to the new bcrypt version $2b$ and use more rounds. Prof. Falken's password is much safer now. Found thanks to a problem report by John McGuigan. ok beck
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.86
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8
index 5e3c3dceb6a..7e2063e569c 100644
--- a/usr.sbin/adduser/adduser.8
+++ b/usr.sbin/adduser/adduser.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adduser.8,v 1.44 2015/12/24 16:54:37 mmcc Exp $
+.\" $OpenBSD: adduser.8,v 1.45 2017/02/06 06:16:52 tb Exp $
.\"
.\" Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" SUCH DAMAGE.
.\"
.\" $From: adduser.8,v 1.12 1996/08/28 17:54:13 adam Exp $
-.Dd $Mdocdate: December 24 2015 $
+.Dd $Mdocdate: February 6 2017 $
.Dt ADDUSER 8
.Os
.Sh NAME
@@ -373,7 +373,7 @@ The password has been created using
.Xr encrypt 1 :
.Bd -literal -offset indent
# adduser -batch falken guest,staff,beer 'Prof. Falken' \e
- $2a$06$1Sdjxjoxg4cNmT6zAxriGOLgdLXQ3HdJ2dKBbzEk68jSrO1EtLJ3C
+ '$2b$10$aOadQNznQ1YJFnqNaRRneOvYvZAEO7atYiTND3EsLf6afHT5t1UIK'
.Ed
.Pp
Create user