chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]
#
# Which fields may be changed by regular users using chfn - use
# any combination of letters "frwh" (full name, room number, work
# phone, home phone). If not defined, no changes are allowed.
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
#
CHFN_RESTRICT rwh
beyes@debian:~$ chfn
Password:
Changing the user information for beyes
Enter the new value, or press ENTER for the default
Full Name: beyes
Room Number [206]:
$cat /etc/passwd
...
beyes:x:1000:1000:beyes,206,26563288,63230688:/home/beyes:/bin/bash
account:password:UID:GID:GECOS:directory:shell
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |