欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Centos配置sudo用戶

  發(fā)布時間:2016-11-23 14:41:05   作者:佚名   我要評論
以下主要內(nèi)容是Centos配置sudo用戶;使用visudo命令進行sudo配置文件的編寫;有需要的朋友可以參考下

使用visudo命令進行sudo配置文件的編寫

## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
ansible ALL=(ALL)       ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.

當前需要做sudo的用戶為ansible,即將其添入root行下方
保存退出即可

免密碼sudo

## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
ansible ALL=(ALL)       NOPASSWD:ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.

只需要將對應用戶的行設置 NOPASSWD即可實現(xiàn)無密碼sudo

相關文章

最新評論