.\" -*- 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