Chfn

来自 ChinaUnix Wiki

Linux命令:chfn

功能说明:改变finger指令显示的信息。
语  法:chfn [-f <真实姓名>][-h <家中电话>][-o <办公地址>][-p <办公电话>][-uv][帐号名称]
补充说明:chfn指令可用来更改执行finger指令时所显示的信息,这些信息都存放在/etc目录里的asswd文件里。若不指定任何参数,则chfn指令会进入问答式界面。
参  数:
-f<真实姓名>或--full-name<真实姓名>  设置真实姓名。 
-h<家中电话>或--home-phone<家中电话>  设置家中的电话号码。 
-o<办公地址>或--office<办公地址>  设置办公室的地址。 
-p<办公电话>或--office-phone<办公电话>  设置办公室的电话号码。 
-u或--help  在线帮助。 
-v或-version  显示版本信息。


英文版本,欢迎翻译:

ABOUT CHFN

Enables a super user or root to modify a users information or enables a user who knows their password to change their information.

SYNTAX

chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]

-f full_name Allows someone to change their full name on their account. -r room_no Allows someone to change their room number on their account. -w work_ph Allows someone to change their work phone number on their account. -h home_ph Allows someone to change their home phone number on their account. -o other Allows someone to change any other notes on their account. user The name of the user who is being changed.


EXAMPLES

Note: For these commands to work you must have super user rights, logged in as root, or know the password for the account currently logged into..

chfn

Running the command without any options will enable the user to change all the system settings they are allowed to change.

个主工具