手动添加新用户蜂巢,基本组为蜂巢(5000)。附加组组mygroup


先添加一个组,纳米所属,切换最后一行,

添加蜂巢:x: 5000:,,,,,,,,,,,,组,mygroup后面用户区加上蜂巢

添加用户纳米/etc/passwd,,加上蜂巢:x: 5000:5000:蜂巢:/home/蜂巢:/bin/bash

纳米/etc/shadow打开并添加一行,蜂巢:! !:15765:0:99999:7:::

bc计算器,问退出规模=2保留两位精度

cp - r/etc/skel//home/hive

乔恩- r蜂巢:蜂巢/home/hive/

chmod - r=去/home/hive/

su -蜂巢可以,但没密码,不能登录

openssl passwd,盐1 ' 12354678 '输入密码生成MD5码然后粘贴替换到/etc/shadow中的! !中

手动添加新用户蜂巢,基本组为蜂巢(5000)。附加组组mygroup