Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-2006, 05:04 PM
Active Member
 
Posts: 30
Default "zmcontrol stop" asks for Password:

I ran into a small nuance running 'zmcontrol stop' on my newly installed
ZCS 4.0.3.network that I thought I'd report in hopes that it gets tidied up in future releases.

I installed the mail store on one server and ldap/mta on another physical server to split the load. When running 'zmcontrol stop' on the mta box (no mail store installed there), when it gets to "Stopping mailbox..." it asks for a "Password:" three times. If I hit return 3 times it goes away and eventually the script completes. There is no harm or foul but it is annoying at best and precludes calling the script without manual intervention.

It turns out that zmcontrol is calling 'zmmailboxctl stop' which in turn calls 'zmmtaconfigctl stop', 'mysql.server stop', 'zmconvertctl stop' and 'tomcat stop'.

When 'tomcat stop' is called on a box where mailstore has not been installed, it asks for a password because the 'tomcat' script tries to sudo 'libexec/zmtomcatmgr' which is not handled in /etc/sudoers.

The simple fix to eliminate this nuisance is just to add:
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmtomcatmgr
to /etc/sudoers on the box without the mailstore component installed.

I'm posting this to bring it to the attention of the Zimbra engineers so that they can possibly come up with a more elegant solution in subsequent releases, e.g. dynamically determining the 'allservices' array in zmcontrol and not calling stop for services that don't exist on the calling server.

My guess is this is isn't their highest priority outstanding "issue", however.
Reply With Quote
  #2 (permalink)  
Old 10-25-2006, 12:23 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

You need to post this in bugzilla and vote on it, it gets more attention there and it's possible to miss this sort of post in the forum.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-25-2006, 02:30 AM
Project Contributor
 
Posts: 58
Default

Quote:
Originally Posted by phoenix
You need to post this in bugzilla and vote on it, it gets more attention there and it's possible to miss this sort of post in the forum.
It is a sudoers problem, already in bugzilla and left unconfirmed

PS: I'm wrong, it is not in bugzilla.
I was sure to have reported it for 4.0 RC1 but nowI cannot find it anymore...

Claudio

Last edited by claros; 10-25-2006 at 04:49 AM..
Reply With Quote
  #4 (permalink)  
Old 10-25-2006, 05:06 PM
Active Member
 
Posts: 30
Default

Cool. Thanks for the feedback. I'll stick it in bugzilla.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.