summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-07-15 16:09:25 +0000
committermillert <millert@openbsd.org>2015-07-15 16:09:25 +0000
commitdd22bb3c8afad308fbe39e38edcceca0e3ae5120 (patch)
tree552a87828525180e7b19b513b759b9b3d2a25edc
parenthttpd don't sanitize variables before putting them in logs. It is possible for (diff)
downloadwireguard-openbsd-dd22bb3c8afad308fbe39e38edcceca0e3ae5120.tar.xz
wireguard-openbsd-dd22bb3c8afad308fbe39e38edcceca0e3ae5120.zip
Describe the behavior when no user is specified. OK jca@ deraadt@
-rw-r--r--usr.bin/passwd/passwd.110
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/passwd/passwd.1 b/usr.bin/passwd/passwd.1
index d32fd831c04..3c04e240c51 100644
--- a/usr.bin/passwd/passwd.1
+++ b/usr.bin/passwd/passwd.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: passwd.1,v 1.41 2014/11/02 05:25:09 tedu Exp $
+.\" $OpenBSD: passwd.1,v 1.42 2015/07/15 16:09:25 millert Exp $
.\"
.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)passwd.1 6.11 (Berkeley) 7/24/91
.\"
-.Dd $Mdocdate: November 2 2014 $
+.Dd $Mdocdate: July 15 2015 $
.Dt PASSWD 1
.Os
.Sh NAME
@@ -42,6 +42,10 @@
.Sh DESCRIPTION
.Nm
changes the user's local or YP password.
+If no
+.Ar user
+is specified, the user's login name is used (see
+.Xr logname 1 ) .
First, the user is prompted for their current password.
If the current password is correctly typed, a new password is requested.
The new password must be entered twice to avoid typing errors.
@@ -129,7 +133,7 @@ file to clear the error.
.Sh SEE ALSO
.Xr chpass 1 ,
.Xr encrypt 1 ,
-.Xr login 1 ,
+.Xr logname 1 ,
.Xr login.conf 5 ,
.Xr passwd 5 ,
.Xr pwd_mkdb 8 ,