«

sudo: no tty present and no askpass program specified

指尖二进制 • 1 年前 • 899 次点击 • ZABBIX


sudo: no tty present and no askpass program specified

[root@bigdata-sftp01 ~]# usermod -aG wheel zabbix
[root@bigdata-sftp01 ~]# vim /etc/sudoers
root    ALL=(ALL)       ALL
zabbix  ALL=(ALL)       NOPASSWD:ALL

## Allows members of the 'sys' group to run networking, software, 
## service management apps and more.
%sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL

## Same thing without a password
%wheel  ALL=(ALL)       NOPASSWD: ALL
还没收到回复