[mdlug] useradd password - can I force first logon change and set initial pass word?
Mathew May
mathewmay1 at wowway.com
Tue Sep 30 16:23:57 EDT 2014
You can do it, but it is a multi step process.
First you need to run something like the following "openssl passwd -crypt {the user's password}" This will display the password hash.
Then run "useradd -e 2014-12-31 -d /home/myuser -s /bin/bash -p {the password hash generated in the first step} myuser.
That should give you what you want. You will just need to keep the hash written down somewhere for safe keeping.
----- Original Message -----
From: gib at juno.com
To: discuss at mug.org, mdlug at mdlug.org
Sent: Tuesday, September 30, 2014 3:22:28 PM
Subject: [mdlug] useradd password - can I force first logon change and set initial pass word?
adduser password - can I force first logon change and set initial password? I want to be able to create a VMware template with a user ID that has an initial password andalso will force the user to enter an initial password. When I set an initial password it will not force it to change when logging on the first time.To force the initial password to change with the first logon I can't set an initial password.I don't have the "adduser" script available. This is what I'm using: useradd -e 2014-12-31 -d /home/myuser -s /bin/bash myuser
____________________________________________________________
The #1 Worst Carb Ever?
Click to Learn #1 Carb that Kills Your Blood Sugar (Don't Eat This!)
http://thirdpartyoffers.juno.com/TGL3131/542b0346cc0b93462df5st03vuc
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list