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 05-03-2010, 06:23 AM
Active Member
 
Posts: 37
Default Change all Password

Hi
Guys, I have a server with 700 zimbra email accounts, for security reasons I need to change the password of ALL mail accounts, and check the "change in the next login" how can I make this process automated?

Thanks...
Reply With Quote
  #2 (permalink)  
Old 05-03-2010, 08:52 AM
Starter Member
 
Posts: 2
Default

Hi

I've never tried this, but I'd do something like this:

Code:
/opt/zimbra/bin/zmprov -l getAllAccounts | while read LINE
do
    /opt/zimbra/bin/zmprov modifyAccount $LINE zimbraPasswordMustChange TRUE
done
Since the getAllAccounts command retrieves all accounts (except the galsyncs), you might want to filter those out (such as the ham, spam and wiki accounts).

If you also want to change the passwords to something temporary, you could do something like this:

Code:
/opt/zimbra/bin/zmprov -l getAllAccounts | while read LINE
do
    /opt/zimbra/bin/zmprov setPassword $LINE newPassword
    /opt/zimbra/bin/zmprov modifyAccount $LINE zimbraPasswordMustChange TRUE
done
Where newPassword would be the new password. Beware though as all the users would get the same password!

Last edited by uven; 05-03-2010 at 08:56 AM.. Reason: Forgot the reset part
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.