创建work帐号并修改密码
- 步骤1,先设置账号
-
userdel test
删除test账户 -
useradd test
增加test账户 -
passwd test
为test设置密码

-
步骤2:添加test帐号到sudo
vim /etc/sudoers
在root ALL=(ALL) ALL下面添加
work ALL=(ALL) ALL -
如果步骤2无效:在root账号下,直接chmod 777 test
创建work帐号并修改密码
userdel test
删除test账户useradd test
增加test账户passwd test
为test设置密码步骤2:添加test帐号到sudo
vim /etc/sudoers
在root ALL=(ALL) ALL下面添加
work ALL=(ALL) ALL
如果步骤2无效:在root账号下,直接chmod 777 test
本文标题:linux创建账号并设置密码
本文链接:https://www.haomeiwen.com/subject/eeuvmctx.html
网友评论