美文网首页
linux创建账号并设置密码

linux创建账号并设置密码

作者: 洛丽塔的云裳 | 来源:发表于2019-10-17 18:20 被阅读0次

创建work帐号并修改密码

  1. 步骤1,先设置账号
  • userdel test 删除test账户
  • useradd test 增加test账户
  • passwd test 为test设置密码
image.png
  1. 步骤2:添加test帐号到sudo
    vim /etc/sudoers
    在root ALL=(ALL) ALL下面添加
    work ALL=(ALL) ALL

  2. 如果步骤2无效:在root账号下,直接chmod 777 test

相关文章

网友评论

      本文标题:linux创建账号并设置密码

      本文链接:https://www.haomeiwen.com/subject/eeuvmctx.html