Imported upstream version 1.5
[manpages-zh.git] / src / man1 / yppasswd.1
blobfc3c8e0c6c9a2fa35dba070a66596ca2a01edd8b
1 .\" -*- nroff -*-
2 .\" Copyright (C) 1998, 1999 Thorsten Kukuk
3 .\" This file is part of the yp-tools.
4 .\" Author: Thorsten Kukuk <kukuk@suse.de>
5 .\"
6 .\" This program is free software; you can redistribute it and/or modify
7 .\" it under the terms of the GNU General Public License as published by
8 .\" the Free Software Foundation; either version 2, or (at your option)
9 .\" any later version.
10 .\"
11 .\" This program is distributed in the hope that it will be useful,
12 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 .\" GNU General Public License for more details.
15 .\"
16 .\" You should have received a copy of the GNU General Public License
17 .\" along with this program; if not, write to the Free Software Foundation,
18 .\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 .\"
20 .TH yppasswd 1 "1998年5月" "YP Tools 2.4"
21 .SH NAME(名称)
22 yppasswd, ypchfn, ypchsh \- 修改你在NIS数据库中的密码
23 .SH SYNOPSIS(总览)
24 .B "yppasswd [-f] [-l] [-p] [user]"
25 .br
26 .B "ypchfn [user]"
27 .br
28 .B "ypchsh [user]"
29 .SH DESCRIPTION(描述)
30 在Linux中,标准的
31 .BR passwd (1),
32 .BR chfn (1)
33
34 .BR chsh (1)
35 不能够用来修改用户的NIS密码,shell和GECOS信息,它们只能修改本机上的密码文件.
36 要修改NIS信息,可以使用它们的NIS对应命令
37 .BR yppasswd ,
38 .B ypchfn
39
40 .BR ypchsh
41 来替代.
43 这些命令都是同一个程序,只是链接为不同的名字罢了.
44 使用命令行选项,你可以选择是否更新你的密码
45 .BR \-p ,
46 你的登录shell
47 .BR \-l ,
48 你的GECOS字段
49 .BR \-f ,
50 还是它们的并集.
51 如果没有指定其它选项的话,
52 .B yppasswd
53 暗含了
54 .B \-p
55 选项.如果你使用了
56 .B \-f
57 或者
58 .B \-l
59 选项,你也需要添加
60 .B \-p
61 标识。
62 .B ypchfn
63 暗含了
64 .B \-f
65 选项,而
66 .B ypchsh
67 则暗含了
68 .BR \-l 
69 选项.
71 当不带
72 .I user
73 参数调用时,正在调用命令的用户的账号信息将被更新,
74 否则更新
75 .I user
76 的信息.该选项只对超级用户有用.如果服务器上的yppasswdd后台守护程序支持,你可以指定服务器的root密码来替换用户[老的]密码.
78 所有工具首先会提示用户当前NIS密码需要使用
79 .BR yppasswdd (8)
80 后台守护程序认证.随后,程序提示以下更新信息:
81 .\"
82 .\"
83 .IP "\fByppasswd\fP或\fB-l\fP"
84 修改用户的NIS密码.提示用户输入新的密码.
85 当输入密码时,响应是关闭的,这样密码不会显示在屏幕上.拒绝空的密码,这是因为密码短于6个字符.用户然后会要求重新输入密码以确证第一次没有拼错.
86 .\"
87 .\"
88 .IP "\fBypchsh\fP or \fB-l\fP"
89 修改用户的登录shell.提示用户输入新的shell,老的shell作为默认值:
90 .IP
91 .in +2n
92 .ft B
93 .nf
94 Login shell [/bin/sh]: _
95 .fi
96 .ft
97 .in
98 .IP
99 要接受默认值,只需按回车.要清除在你的
100 .BR passwd (5)
101 文件中的shell字段(这样会选定系统的默认shell),
102 输入字符串
103 .IR none .
106 .IP "\fBypchfn\fP or \fB-f\fP"
107 修改用户的全名和相关信息.按照惯例,一些应用程序需求
108 .BR passwd (5)
109 文件的GECOS字段(字段4)包含用户的真名(与登录名相对应)和一些如办公室电话号码之类的附加信息.这些信息通过
110 .BR finger (1)
111 和其他一些可能的工具显示.
113 当设置全名时,
114 .B ypchfn
115 显示以下提示,默认值使用方括号括起:
117 .in +2n
118 .ft B
120 Name [Joe Doe]:
121 Location [2nd floor, bldg 34]:
122 Office Phone [12345]:
123 Home Phone []:
128 要接受默认值,只需按回车.要清除一个字段,则输入
129 字符串
130 .IR none .
131 .SH SEE ALSO(另见)
132 .BR chfn (1),
133 .BR chsh (1),
134 .BR finger (1),
135 .BR passwd (5),
136 .BR passwd (1),
137 .BR ypcat (1),
138 .BR yppasswdd (8),
139 .BR ypserv (8),
140 .BR ypwhich (1)
142 .SH AUTHOR(作者)
143 .B yppasswd
145 .B yp-tools
146 包的一部分,由Thorsten Kukuk <kukuk@suse.de>写成.
151 .SH "[中文版维护人]"
152 .B riser <boomer@ccidnet.com>
153 .SH "[中文版最新更新]"
154 .BR 2000/12/14
155 .SH "《中国linux论坛man手册页翻译计划》:"
156 .BI http://cmpp.linuxforum.net