Results 1 to 6 of 6

Thread: Bulk remove "Must Change Password" Possible?

  1. #1
    physikal is offline Loyal Member
    Join Date
    Apr 2009
    Posts
    90
    Rep Power
    6

    Default Bulk remove "Must Change Password" Possible?

    Is it possible to remove the "Must Change Password" at next login tick for all users with one command? If so please help!

  2. #2
    kirme3 is offline Trained Alumni
    Join Date
    Apr 2006
    Location
    Illinois
    Posts
    194
    Rep Power
    9

    Default

    from this thread [SOLVED] Force password change for ALL accounts

    I bet if you change the option to FALSE it will disable the change password at next login option...so it would be :

    for each in `zmprov gaa`; do zmprov ma $each zimbraPasswordMustChange FALSE; done

  3. #3
    physikal is offline Loyal Member
    Join Date
    Apr 2009
    Posts
    90
    Rep Power
    6

    Default

    I tried that but it doesnt seem to be working for me. I don't think i'm enough of a linux guru to understand that bash thing, where to type it and under what user. all that good stuff hah.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Quote Originally Posted by physikal View Post
    I tried that but it doesnt seem to be working for me. I don't think i'm enough of a linux guru to understand that bash thing, where to type it and under what user. all that good stuff hah.
    It's one line, copy/paste it and run it as the Zimbra user - zmprov is always run as the zimbra user.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    rodrigobgcr is offline Starter Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    6

    Default

    Just in case you still need it, or will need it in the future...

    #!/bin/bash
    # Script for setting the zimbraPasswordMustChange attribute enable or disable

    zmprov gaa > accountsList.txt

    while read user
    do
    echo $user
    zmprov ma $user $1 $2
    done < accountsList.txt

    rm accountsList.txt
    You can make a bulk change of any attribute. For example ./bulkAccountAttributeChange.sh zimbraPasswordMustChange FALSE

  6. #6
    carlos.olvera is offline Starter Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    4

    Talking

    Here's a new script in case someone has problems running the previous one, it takes almost 3 seconds per user, so plan your changes proactively in case you have to leave this running.


    #!/bin/bash
    # Script for setting the zimbraPasswordMustChange attribute enable or disable

    /opt/zimbra/bin/zmprov -l gaa > accountsList.txt

    while read user
    do
    echo $user
    /opt/zimbra/bin/zmprov -l ma $user $1 $2
    done < accountsList.txt

    rm accountsList.txt

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bulk user creation and must change password
    By ple in forum Administrators
    Replies: 5
    Last Post: 01-24-2009, 02:23 AM
  2. Bulk Change of Contact Data
    By PS-Man in forum General Questions
    Replies: 4
    Last Post: 10-28-2008, 09:47 PM
  3. Replies: 3
    Last Post: 02-20-2008, 10:00 PM
  4. Bulk Remove domain aliases
    By kechols in forum Administrators
    Replies: 7
    Last Post: 09-05-2006, 08:39 AM
  5. "Must change password" still doest work
    By graffiti in forum Users
    Replies: 5
    Last Post: 12-05-2005, 09:00 PM

Posting Permissions

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