{ centos } CentOS Create User

2016-08-03  本文已影响0人  nealma

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权限,且不需要密码
上一篇下一篇

猜你喜欢

热点阅读