手机
当前位置:查字典教程网 >操作系统 >RedHat/Centos >Centos配置sudo用户
Centos配置sudo用户
摘要:使用visudo命令进行sudo配置文件的编写##TheCOMMANDSsectionmayhaveotheroptionsaddedtoi...

使用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即可实现无密码sudo

【Centos配置sudo用户】相关文章:

让Centos解压打包RAR的实现方法

CentOS配置ssh无密码登录注意事项

etc/profile环境变量配置解析

centos中lvs安装配置方法详解

CentOS 6.4 下安装vsftpd并配置虚拟用户

centos 5.1 vncserver设置

CentOS系统下配置FTP的方法

redhat下磁盘配额设置!

centos配置nfs服务详细步骤(centos开启nfs服务)

centos 系统下安装配置FastDFS步骤分享

精品推荐
分类导航