Skip to content
Snippets Groups Projects
Verified Commit 25baf645 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

create_users_from_mail.sh: reduce user pwd to 10 characters

parent f1cc320c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ for USERMAIL in ${USERMAILS[@]}
do
USERNAME=$(echo ${USERMAIL} | sed -E 's/(.*)@.*/\1/')
adduser ${USERNAME} --gecos 'First Last,RoomNumber,WorkPhone,HomePhone' --disabled-password
PASSWD=$(openssl rand -base64 20)
PASSWD=$(openssl rand -base64 10)
echo "${USERNAME}:${PASSWD}" | chpasswd
echo "======================================================================="
echo "${USERMAIL}:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment