使い方: chfn [ -f フルネーム ] [ -o オフィス ] [ -p オフィス電話番号 ] [ -h 自宅電話番号 ] [ --help ] [ --version ]
Usage: chfn [ -f full-name ] [ -o office ] [ -p office-phone ] [ -h home-phone ] [ --help ] [ --version ]
CHFN(1) CHFN(1)
名前
chfn - ユーザの氏名や情報を変更する。
書式
chfn [-f full_name] [-r room_no]
[-w work_ph] [-h home_ph] [-o other] [user]
説明
chfn は、ユーザのフルネーム・オフィスの部屋番号・内線番号・自宅の電話番
号といったアカウント情報を変更する。この情報は finger(1) のようなプログ
ラ ムによって表示される。一般ユーザは自分自身のアカウント情報のみを変更
できる。スーパーユーザは全てのアカウントに対して情報を変更できる。ま た
-o オプションを用いて GECOS 欄の未定義部分を変更できるのもスーパーユー
ザだけである。
各フィールドに書く内容に関する制限は、コントロール文字・コンマ・コロ ン
・等号を含んでいてはならない、ということのみである。 other 欄に対しては
この制限はないので、他のアプリケーションが用いるアカウンティング情報 の
記録に利用される。
い ずれのオプションも指定されないと chfn は対話的に動作する。全ての欄に
対して各々現在の設定値を表示し、新しい値の入力を促す。新しい値を設定 す
る 場合はそれを入力し、現在の値を使うなら空行のままリターンキーを押せば
よい。現在の値は [ ] 記号の間に表示される。オプションを指定しなかった場
合、 chfn は現在のユーザアカウントに対して動作する。
ファイル
/etc/passwd - ユーザアカウント情報
関連項目
passwd(5)
著者
Julianne Frances Haugh
CHFN(1) Linux Reference Manual CHFN(1)
NAME
chfn - change your finger information
SYNOPSIS
chfn [-f full-name] [-o office] ,RB [ -p office-phone] [-h home-phone]
-u] [-v] [username]
DESCRIPTION
chfn is used to change your finger information. This information is
stored in the /etc/passwd file, and is displayed by the finger program.
The Linux finger command will display four pieces of information that
can be changed by chfn: your real name, your work room and phone, and
your home phone.
COMMAND LINE
Any of the four pieces of information can be specified on the command
line. If no information is given on the command line, chfn enters
interactive mode.
INTERACTIVE MODE
In interactive mode, chfn will prompt for each field. At a prompt, you
can enter the new information, or just press return to leave the field
unchanged. Enter the keyword "none" to make the field blank.
OPTIONS
-f, --full-name full-name
Specify your real name.
-o, --office office
Specify your office room number.
-p, --office-phone office-phone
Specify your office phone number.
-h, --home-phone home-phone
Specify your home phone number.
-u, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
SEE ALSO
finger(1), passwd(5)
AUTHOR
Salvatore Valente
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa