Lesson 12

Date: 6/25/2017
Linux Password Security
Linux System Administration

User password with different encryptions.
  • On cryptvm, create user accounts mike1, mike2, mike3, mike4:
    useradd -m -s /bin/bash -d /home/mike1 mike1
    useradd -m -s /bin/bash -d /home/mike2 mike2
    useradd -m -s /bin/bash -d /home/mike3 mike3
    useradd -m -s /bin/bash -d /home/mike4 mike4

    By using command mkpasswd on cryptvm create passwords for each user with the different encryption algorithm:
    mkpasswd --method=des mike1
    mkpasswd --method=md5 --salt=b1b2b3b4 mike2
    mkpasswd --method=sha-256 --salt=b1b2b3b4 mike3
    mkpasswd --method=sha-512 --salt=b1b2b3b4 mike4

  • Copy the hashes into the user accounts on cryptvm.
    To see thelast 4 the entries in /etc/shadow
    tail -4 /etc/shadow 
    They should look as follows:

  • From the desktop, ssh to cryptvm as users mike1, mike2, mike3, mike4 and make sure their passwords work:
    ssh mike1@cryptvm
    ssh mike2@cryptvm
    ssh mike3@cryptvm
    ssh mike4@cryptvm

  • Take me to the Course Website