美文网首页
User Management on Linux

User Management on Linux

作者: n5ken | 来源:发表于2017-05-02 23:19 被阅读0次

    Show all users:

    cut -d: -f1 /etc/passwd

    [For Ubuntu] Add user, change password and assign to admin group (create a sudo user)

    # adduser [user name]

    # passwd [user name]

    # usermod -aG sudo [user name]

    [For CentOS]

    # usermod -aG wheel [user name]

    相关文章

      网友评论

          本文标题:User Management on Linux

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