技术张儿

sudo: no tty present and no askpass program specified

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

还没有评论,来说两句吧。

发表评论

邮箱仅用于显示头像,不会公开。