.\" -*- nroff -*- .\" Copyright (C) 1998, 1999 Thorsten Kukuk .\" This file is part of the yp-tools. .\" Author: Thorsten Kukuk .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2, or (at your option) .\" any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software Foundation, .\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\" .TH yppasswd 1 "1998年5月" "YP Tools 2.4" .SH NAME(名稱) yppasswd, ypchfn, ypchsh \- 修改你在NIS資料庫中的密碼 .SH SYNOPSIS(總覽) .B "yppasswd [-f] [-l] [-p] [user]" .br .B "ypchfn [user]" .br .B "ypchsh [user]" .SH DESCRIPTION(描述) 在Linux中,標準的 .BR passwd (1), .BR chfn (1) 和 .BR chsh (1) 不能夠用來修改使用者的NIS密碼,shell和GECOS資訊,它們只能修改本機上的密碼檔案. 要修改NIS資訊,可以使用它們的NIS對應命令 .BR yppasswd , .B ypchfn 和 .BR ypchsh 來替代. .P 這些命令都是同一個程式,只是連結為不同的名字罷了. 使用命令列選項,你可以選擇是否更新你的密碼 .BR \-p , 你的登入shell .BR \-l , 你的GECOS欄位 .BR \-f , 還是它們的並集. 如果沒有指定其它選項的話, .B yppasswd 暗含了 .B \-p 選項.如果你使用了 .B \-f 或者 .B \-l 選項,你也需要新增 .B \-p 標識。 .B ypchfn 暗含了 .B \-f 選項,而 .B ypchsh 則暗含了 .BR \-l 選項. .P 當不帶 .I user 引數呼叫時,正在呼叫命令的使用者的賬號資訊將被更新, 否則更新 .I user 的資訊.該選項只對超級使用者有用.如果伺服器上的yppasswdd後臺守護程式支援,你可以指定伺服器的root密碼來替換使用者[老的]密碼. .P 所有工具首先會提示使用者當前NIS密碼需要使用 .BR yppasswdd (8) 後臺守護程式認證.隨後,程式提示以下更新資訊: .\" .\" .IP "\fByppasswd\fP或\fB-l\fP" 修改使用者的NIS密碼.提示使用者輸入新的密碼. 當輸入密碼時,響應是關閉的,這樣密碼不會顯示在螢幕上.拒絕空的密碼,這是因為密碼短於6個字元.使用者然後會要求重新輸入密碼以確證第一次沒有拼錯. .\" .\" .IP "\fBypchsh\fP or \fB-l\fP" 修改使用者的登入shell.提示使用者輸入新的shell,老的shell作為預設值: .IP .in +2n .ft B .nf Login shell [/bin/sh]: _ .fi .ft .in .IP 要接受預設值,只需按回車.要清除在你的 .BR passwd (5) 檔案中的shell欄位(這樣會選定系統的預設shell), 輸入字串 .IR none . .\" .\" .IP "\fBypchfn\fP or \fB-f\fP" 修改使用者的全名和相關資訊.按照慣例,一些應用程式需求 .BR passwd (5) 檔案的GECOS欄位(欄位4)包含使用者的真名(與登入名相對應)和一些如辦公室電話號碼之類的附加資訊.這些資訊透過 .BR finger (1) 和其他一些可能的工具顯示. .IP 當設定全名時, .B ypchfn 顯示以下提示,預設值使用方括號括起: .IP .in +2n .ft B .nf Name [Joe Doe]: Location [2nd floor, bldg 34]: Office Phone [12345]: Home Phone []: .fi .ft .in .IP 要接受預設值,只需按回車.要清除一個欄位,則輸入 字串 .IR none . .SH SEE ALSO(另見) .BR chfn (1), .BR chsh (1), .BR finger (1), .BR passwd (5), .BR passwd (1), .BR ypcat (1), .BR yppasswdd (8), .BR ypserv (8), .BR ypwhich (1) .LP .SH AUTHOR(作者) .B yppasswd 是 .B yp-tools 包的一部分,由Thorsten Kukuk 寫成. .SH "[中文版維護人]" .B riser .SH "[中文版最新更新]" .BR 2000/12/14 .SH "《中國linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR