Timeline for Using hashed password for adduser function in Linux
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 12, 2017 at 4:10 | comment | added | nealmcb |
In Ubuntu, this is done via the useradd command, with the same arguments. For interactive users, you may also want to create their initial directory, and give them a bash shell: -m -s /bin/bash
|
|
| Apr 13, 2017 at 12:13 | history | edited | CommunityBot |
replaced http://serverfault.com/ with https://serverfault.com/
|
|
| S Jan 26, 2017 at 16:38 | history | suggested | Roger Dueck | CC BY-SA 3.0 |
Fixed format of sample code.
|
| Jan 26, 2017 at 16:31 | review | Suggested edits | |||
| S Jan 26, 2017 at 16:38 | |||||
| Nov 12, 2015 at 20:23 | comment | added | scree | I ´ve tried generate sha-512 hash by php $pass = crypt("myPassword" , "$6$FixedSalt")** but when I do again **useradd -p "$pass" <username>** - what i see in **/etc/shadow** looks still different hash (there is no $6$ at the beginning and it is short). I thinked maybe my PHP hash not corresponds the valid Unix format? What finally worked for me, was hashing inside my bash **openssl passwd -crypt Test007 -> output me: "jc44wHaeucnHI" than I can login with password "Test007" to my new user. Can I find similiar function as openssl in PHP? | |
| Nov 11, 2015 at 10:01 | history | answered | Thomas Dickey | CC BY-SA 3.0 |