标签:user inux whoami school 资讯 pre 属性 用户 root
/etc/passwd
/etc/group
useradd kk #添加用户kk
whoami #显示当前用户
pwd #显示当前目录
su root #切换到root用户
passwd w3cschool #设置w3cschool用户的密码
Enter new UNIX password: #输入新密码,输入的密码无回显
Retype new UNIX password: #确认密码
passwd: password updated successfully
chfn
Changing finger information for root.
Name [root]: hnlinux
Office []: hn
Office Phone []: 888888
Home Phone []: 9999999
Finger information changed.
usermod -g usergroup username
标签:user inux whoami school 资讯 pre 属性 用户 root
原文地址:https://www.cnblogs.com/aaroncnblogs/p/9204270.html