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-22-2009, 08:45 PM
Loyal Member
 
Posts: 87
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!
Reply With Quote
  #2 (permalink)  
Old 05-22-2009, 10:33 PM
Trained Alumni
 
Posts: 193
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
Reply With Quote
  #3 (permalink)  
Old 05-22-2009, 10:49 PM
Loyal Member
 
Posts: 87
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.
Reply With Quote
  #4 (permalink)  
Old 05-26-2009, 05:16 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
Reply With Quote
  #5 (permalink)  
Old 08-15-2009, 10:12 PM
Starter Member
 
Posts: 1
Default

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

Quote:
#!/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
Reply With Quote
  #6 (permalink)  
Old 12-23-2010, 02:50 PM
Starter Member
 
Posts: 1
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
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.