This comes up periodically with users being confused when running
passwd after su changes the passwd of the user they came from.

 - todd

Index: usr.bin/passwd/passwd.1
===================================================================
RCS file: /cvs/src/usr.bin/passwd/passwd.1,v
retrieving revision 1.41
diff -u -p -u -r1.41 passwd.1
--- usr.bin/passwd/passwd.1     2 Nov 2014 05:25:09 -0000       1.41
+++ usr.bin/passwd/passwd.1     15 Jul 2015 15:40:59 -0000
@@ -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 ,

Reply via email to