手机
当前位置:查字典教程网 >操作系统 >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安装配置pptp vpn服务器步骤分享

etc/profile环境变量配置解析

centos 5.1 vncserver设置

centos7下systemd实现tomcat多实例配置方法

CentOS服务器端配置SSH远程连接的教程

CentOS 6.0 VNC远程桌面配置方法

Centos 6.5 64位双网卡绑定教程

redhat下磁盘配额设置!

centos中wget的使用方法

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

精品推荐
分类导航