Results 1 to 4 of 4

Thread: "zmcontrol stop" asks for Password:

  1. #1
    mrfileio is offline Active Member
    Join Date
    Aug 2006
    Location
    Chandler, AZ
    Posts
    31
    Rep Power
    8

    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.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    claros's Avatar
    claros is offline Project Contributor
    Join Date
    Mar 2006
    Location
    L'Aquila, ITALIA
    Posts
    59
    Rep Power
    9

    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.

  4. #4
    mrfileio is offline Active Member
    Join Date
    Aug 2006
    Location
    Chandler, AZ
    Posts
    31
    Rep Power
    8

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •