Results 1 to 5 of 5

Thread: zmprov Scripting

  1. #1
    ceefus is offline Active Member
    Join Date
    Sep 2008
    Posts
    29
    Rep Power
    6

    Default zmprov Scripting

    Hello,

    I'm attempting to create a script to allow my level 1 techs to change user's passwords.

    zmprov works if I:

    su - zimbra
    zmprov

    but if I type:

    su - zimbra zmprov sp user@domain.com temppw

    I get this output:

    /opt/zimbra/bin/zmprov: line 17: /opt/zimbra/zmjava: No such file or directory
    /opt/zimbra/bin/zmprov: line 17: exec: /opt/zimbra/zmjava: cannot execute: No such file or directory
    root@zimbra:~#

    Does anyone know what causes this or the fix?


    Thanks in advance.

  2. #2
    jummo is offline Special Member
    Join Date
    May 2009
    Location
    Bremen, Germany
    Posts
    122
    Rep Power
    6

    Default

    Use the -c switch of su.

    Code:
    su - zimbra -c 'zmprov sp user@domain.com  temppw'
    Last edited by jummo; 08-05-2010 at 01:24 AM. Reason: Typo

  3. #3
    rmanni is offline Junior Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    5

    Default

    Is it possible to force the users to change the password after assigning them a temp password using zmprov?

  4. #4
    jummo is offline Special Member
    Join Date
    May 2009
    Location
    Bremen, Germany
    Posts
    122
    Rep Power
    6

  5. #5
    rmanni is offline Junior Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    5

    Default

    Thank you, I am still learning my way around the zimbra CLI, this will help a lot.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to script zmprov changes completely
    By todd_dsm in forum Installation
    Replies: 1
    Last Post: 12-16-2009, 07:39 AM
  2. Zimbra 6.0 Rc1 Ubuntu 804lts -Attachments Block Error
    By mshanley in forum Administrators
    Replies: 26
    Last Post: 10-09-2009, 11:13 AM
  3. Domain alias with zmprov
    By Klug in forum Administrators
    Replies: 2
    Last Post: 03-25-2009, 07:49 AM
  4. Scripting zmprov with Ruby (getting stdout/stderr)
    By Chewie71 in forum Developers
    Replies: 6
    Last Post: 07-24-2008, 07:21 AM
  5. Moving to different server
    By AaronW1000 in forum Installation
    Replies: 2
    Last Post: 07-03-2008, 07:39 AM

Posting Permissions

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