PASSWD.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH PASSWD 1
- .SH NAME
- passwd, chfn, chsh - change a login password, full name or shell
- .SH SYNOPSIS
- fBpasswdfR [fIuserfR]fR
- .br
- fBchfnfR [fIuserfR] fIfullnamefRfR
- .br
- fBchfnfR [fIuserfR] fIshellfRfR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH EXAMPLES
- .EX "passwd" "Change current user's password"
- .EX "passwd ast" "Change ast's password (super-user only)"
- .EX "chsh /usr/bin/mail" "For those who only read mail"
- .EX "chfn 'Jane Doe'" "Current user is Jane Doe"
- .SH DESCRIPTION
- .PP
- .I Passwd
- is used to change your password.
- It prompts for the old and new passwords.
- It asks for the new password twice, to reduce the effect of a typing error.
- .I Chfn
- changes the full name (GECOS field) in the password file.
- .I Chsh
- changes your login shell.
- Do not forget to copy the modified password file back to the root file system,
- or the changes will be lost when the system is rebooted.
- .SH "SEE ALSO"
- .BR login (1),
- .BR su (1),
- .BR crypt (3),
- .BR getpwent (3).