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 08-04-2010, 02:38 PM
Active Member
 
Posts: 29
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.
Reply With Quote
  #2 (permalink)  
Old 08-05-2010, 01:24 AM
Special Member
 
Posts: 113
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
Reply With Quote
  #3 (permalink)  
Old 08-05-2010, 04:20 AM
Junior Member
 
Posts: 5
Default

Is it possible to force the users to change the password after assigning them a temp password using zmprov?
Reply With Quote
  #4 (permalink)  
Old 08-05-2010, 08:00 AM
Special Member
 
Posts: 113
Default

Look here [SOLVED] Force password change for ALL accounts
Reply With Quote
  #5 (permalink)  
Old 08-05-2010, 08:37 AM
Junior Member
 
Posts: 5
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

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.