sortix-mirror/utils/passwd.1

40 lines
755 B
Groff

.Dd October 2, 2016
.Dt PASSWD 1
.Os
.Sh NAME
.Nm passwd
.Nd change user password
.Sh SYNOPSIS
.Nm
.Op Fl H
.Op Fl c Ar cipher
.Op Ar user
.Sh DESCRIPTION
.Nm
changes the password for the specified
.Ar user ,
or the current user if none is specified.
.Pp
The options are as follows:
.Bl -tag -width "12345678"
.It Fl c Ar cipher
Hash the password using the specified
.Ar cipher .
.It Fl H
Read a password from the standard input and write the
.Xr crypt_newpass 3
hash to the standard output.
The password database is unchanged.
.El
.Sh FILES
.Bl -tag -width "/etc/passwd" -compact
.It Pa /etc/passwd
Password information for all users.
.El
.Sh EXIT STATUS
.Nm
will exit 0 on success and non-zero otherwise.
.Sh SEE ALSO
.Xr crypt_newpass 3 ,
.Xr passwd 5