美文网首页
{ centos } CentOS Create User

{ centos } CentOS Create User

作者: nealma | 来源:发表于2016-08-03 15:54 被阅读0次

    add new user

    set passwd

    add new group

    add user to a groups

    Allow root to run any commands anywhere

    root    ALL=(ALL)       ALL
    newuser ALL=(ALL)       ALL
    
    第一个ALL代表那些服务器,第二个ALL给其什么用户的权限,第三个ALL代表给哪些命令权限
    neal.ma   ALL=(root)   NOPASSWD:  /usr/bin/yum,/usr/bin/node,/usr/bin/n
    给a用户yum权限,且不需要密码
    

    相关文章

      网友评论

          本文标题:{ centos } CentOS Create User

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