I'm running zimbra 8.8 on Ubuntu 16.04.5 LTS. The issue I've encountered is whenever I run anything for zimbra as the zimbra user I get prompted to enter the user password. For instance I'll run ./zmcontrol status and be prompted at seemingly random intervals for the zimbra user password. I checked the wiki entry for this issue & modified my sudoers file accordingly, but the entry states that this shouldn't be an issue past Zimbra 8.7. I also checked the sudoers.d directory, it has the following:
File:
01_zimbra
Text:
Code: Select all
Defaults:zimbra !requiretty
02_zimbra-core
Text:
Code: Select all
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmstat-fd *
02_zimbra-dnscache
Text:
Code: Select all
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmunbound
%zimbra ALL=NOPASSWD:/sbin/resolvconf *
File:
02_zimbra-ldap
Text:
Code: Select all
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmslapd
02_zimbra-proxy
Text:
Code: Select all
%zimbra ALL=NOPASSWD:/opt/zimbra/common/sbin/nginx
02_zimbra-store
Text:
Code: Select all
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmmailboxdmgr
Code: Select all
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmstat-fd *
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmslapd
%zimbra ALL=NOPASSWD:/opt/zimbra/postfix/sbin/postfix, /opt/zimbra/postfix/sbin/postalias, /opt/zimbra/postfix/sbin/qshape.pl, /opt/zimbra/postfix/sbin/postconf,/opt/zimbra/postfix/sbin/postsuper
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat,/opt/zimbra/libexec/zmmtastatus
%zimbra ALL=NOPASSWD:/opt/zimbra/amavisd/sbin/amavis-mc
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmunbound
%zimbra ALL=NOPASSWD:/sbin/resolvconf *
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmmailboxdmgr
%zimbra ALL=NOPASSWD:/opt/zimbra/bin/zmcertmgr
%zimbra ALL=NOPASSWD:/opt/zimbra/nginx/sbin/nginx