Re: [qmailtoaster] Re: Bulk user import script works
No encrypting necessary. Worked with plain text passwords that were in the file. John Eric wrote: > What's the word on how passwords need to be encoded? (Just for > posterity) > > John Hansen wrote: > > The bulk user script does run as expected. My problem was that the original > > script used $PASS, and the modified script uses $PASSWORD. I only made > > modifications in my existing script instead of copying and pasting the > > entire > > file in. So, here is the add bulk users script that does work importing > > users > > and passwords in case someone else would like to use it. It's the same one > > posted earlier. Sorry for the confusion. Thanks PakOgah for making the changes. > > John > > > > #!/bin/bash > > # > > # BULK USER ADDING FOR QMAIL TOASTER > > # > > # Created after I ran into an issue of creating 20,000 users on my toaster! > > # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" > > # helped me with. > > # Still very manual, but Work in Progress > > # > > # Suggestions to akisa...@ucu.ac.ug > > # > > # Change a few variables and you are good to go > > # > > # > > # Location of the users file > > # Rememeber that the users file is in the format > > # Firstname Lastname Username > > USERS_FILE="/usr/local/file1.txt" > > # The mail domain to which users are created > > # > > MAILDOMAIN="@cotterschools.org" > > # the vadduser command > > QMAILADD="/home/vpopmail/bin/vadduser" > > # Select a default password for all users > > #PASS="mypass" > > #Specify the Default Quota_in_bytes for your Users > > # 10 MB = 10 x 1024 x 1024 > > QUOTA="419430400" > > #Fun starts here No more variables to change below this line > > cat ${USERS_FILE} | \ > > while read FIRSTNAME LASTNAME USERNAME PASSWORD > > do > > echo "adding the user: $USERNAME" > > $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN > > $PASSWORD > > done > > # > > > > > > > > -- > -Eric 'shubes' > > - > Qmailtoaster is sponsored by Vickers Consulting Group > (www.vickersconsulting.com)Vickers Consulting Group offers > Qmailtoaster support and installations. If you need > professional help with your setup, contact them today! > - > Please visit qmailtoaster.com for the latest news, updates, and > packages. > > To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com > For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com > > -- > This message has been scanned for viruses and > dangerous content by the Cotter Technology > Department, and is believed to be clean. --- End of Original Message --- -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script works
What's the word on how passwords need to be encoded? (Just for posterity) John Hansen wrote: The bulk user script does run as expected. My problem was that the original script used $PASS, and the modified script uses $PASSWORD. I only made modifications in my existing script instead of copying and pasting the entire file in. So, here is the add bulk users script that does work importing users and passwords in case someone else would like to use it. It's the same one posted earlier. Sorry for the confusion. Thanks PakOgah for making the changes. John #!/bin/bash # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username USERS_FILE="/usr/local/file1.txt" # The mail domain to which users are created # MAILDOMAIN="@cotterschools.org" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users #PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="419430400" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME PASSWORD do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASSWORD done # -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script works
The bulk user script does run as expected. My problem was that the original script used $PASS, and the modified script uses $PASSWORD. I only made modifications in my existing script instead of copying and pasting the entire file in. So, here is the add bulk users script that does work importing users and passwords in case someone else would like to use it. It's the same one posted earlier. Sorry for the confusion. Thanks PakOgah for making the changes. John #!/bin/bash # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username USERS_FILE="/usr/local/file1.txt" # The mail domain to which users are created # MAILDOMAIN="@cotterschools.org" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users #PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="419430400" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME PASSWORD do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASSWORD done # -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com