1
.\" A man page for lpasswd
2
.\" Copyright (C) 2005 Red Hat, Inc.
4
.\" This is free software; you can redistribute it and/or modify it under
5
.\" the terms of the GNU Library General Public License as published by
6
.\" the Free Software Foundation; either version 2 of the License, or
7
.\" (at your option) any later version.
9
.\" This program is distributed in the hope that it will be useful, but
10
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
11
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
.\" General Public License for more details.
14
.\" You should have received a copy of the GNU Library General Public
15
.\" License along with this program; if not, write to the Free Software
16
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
.\" Author: Miloslav Trmac <mitr@redhat.com>
19
.TH lpasswd 1 "Jan 12 2005" libuser
22
lpasswd \- Change group or user password
25
lchsh [\fIOPTION\fR]... [\fIname\fR]
28
Changes password of user or group \fIname\fR.
30
If the \fIname\fR argument is not provided,
31
username of the invoking user is used;
32
the \fIname\fR argument is ignored if
34
is run set-uid to a different user.
36
Entering an empty password (by pressing Enter)
37
aborts the password setting operation.
41
\fB\-F\fR, \fB\-\-plainpassword-fd\fR=\fIfd\fR
42
Read password from file descriptor \fIfd\fR, terminated by end of file,
43
\fB'\\r'\fR or \fB'\\n'\fR.
46
\fB\-f\fR, \fB\-\-password-fd\fR=\fIfd\fR
47
Read password hash from file descriptor \fIfd\fR, terminated by end of file,
48
\fB'\\r'\fR or \fB'\\n'\fR.
51
\fB\-g\fR, \fB\-\-group\fR
52
Change password of group \fIname\fR.
53
By default the password of user \fIname\fR is changed.
56
\fB\-i\fR, \fB\-\-interactive\fR
57
Ask all questions when connecting to the user database,
58
even if default answers are set up in
63
\fB\-P\fR, \fB\-\-plainpassword\fR=\fIpassword\fR
64
Set the password to \fIpassword\fR.
65
Note that the password can be viewed while running
71
\fB\-p\fR, \fB\-\-password\fR=\fIencrypted\fR
72
Set the password to the password represented by the hash \fIencrypted\fR.
73
Note that the hash can be viewed while running
79
The exit status is 0 on success, nonzero on error.