Results 1 to 2 of 2

Thread: Change all Password

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Vitória - ES - Brazil
    Posts
    63
    Rep Power
    6

    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...

  2. #2
    Join Date
    May 2010
    Posts
    2
    Rep Power
    5

    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

Similar Threads

  1. ZCS 6 + Samba - password change issues
    By tslosek in forum Administrators
    Replies: 2
    Last Post: 11-25-2009, 06:28 AM
  2. New User/Must Change Password oddity...
    By ssatre in forum Administrators
    Replies: 5
    Last Post: 07-25-2009, 11:19 PM
  3. [SOLVED] Change Password Not Working
    By tansyuan in forum Administrators
    Replies: 6
    Last Post: 06-25-2009, 08:09 AM
  4. [SOLVED] "zimbra" user password change.
    By nishith in forum Administrators
    Replies: 3
    Last Post: 08-27-2008, 01:27 AM
  5. Replies: 4
    Last Post: 12-13-2007, 09:18 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
  •