Rev | Line | |
---|
[9] | 1 | .TH PASSWD 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | passwd, chfn, chsh \- change a login password, full name or shell
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | \fBpasswd\fR [\fIuser\fR]\fR
|
---|
| 6 | .br
|
---|
| 7 | \fBchfn\fR [\fIuser\fR] \fIfullname\fR\fR
|
---|
| 8 | .br
|
---|
| 9 | \fBchsh\fR [\fIuser\fR] \fIshell\fR\fR
|
---|
| 10 | .br
|
---|
| 11 | .de FL
|
---|
| 12 | .TP
|
---|
| 13 | \\fB\\$1\\fR
|
---|
| 14 | \\$2
|
---|
| 15 | ..
|
---|
| 16 | .de EX
|
---|
| 17 | .TP 20
|
---|
| 18 | \\fB\\$1\\fR
|
---|
| 19 | # \\$2
|
---|
| 20 | ..
|
---|
| 21 | .SH EXAMPLES
|
---|
| 22 | .EX "passwd" "Change current user's password"
|
---|
| 23 | .EX "passwd ast" "Change ast's password (super\-user only)"
|
---|
| 24 | .EX "chsh /usr/bin/mail" "For those who only read mail"
|
---|
| 25 | .EX "chfn 'Jane Doe'" "Current user is Jane Doe"
|
---|
| 26 | .SH DESCRIPTION
|
---|
| 27 | .PP
|
---|
| 28 | .I Passwd
|
---|
| 29 | is used to change your password.
|
---|
| 30 | It prompts for the old and new passwords.
|
---|
| 31 | It asks for the new password twice, to reduce the effect of a typing error.
|
---|
| 32 | .I Chfn
|
---|
| 33 | changes the full name (GECOS field) in the password file.
|
---|
| 34 | .I Chsh
|
---|
| 35 | changes your login shell.
|
---|
| 36 | Do not forget to copy the modified password file back to the root file system,
|
---|
| 37 | or the changes will be lost when the system is rebooted.
|
---|
| 38 | .SH "SEE ALSO"
|
---|
| 39 | .BR login (1),
|
---|
| 40 | .BR su (1),
|
---|
| 41 | .BR crypt (3),
|
---|
| 42 | .BR getpwent (3),
|
---|
| 43 | .BR passwd (5),
|
---|
| 44 | .BR adduser (8).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.