In this lab, you will create a number of users on your serverX system, setting and recording an initial password for each user.
Outcomes
A system with additional user accounts.
Reset your serverX system.
Log into the GNOME desktop on serverX as student with a password of student.
Open a window with a Bash prompt.
Select → → .
Become the root user at the shell prompt.
[student@serverX ~]$su -Password:redhat
Add the user juliet.
[root@serverX ~]#useradd juliet
Confirm that juliet has been added by
examining the /etc/passwd file.
[root@serverX ~]#tail -2 /etc/passwdtcpdump:x:72:72::/:/sbin/nologin juliet:x:1001:1001::/home/juliet:/bin/bash
Use the passwd command to initialize juliet's password.
[root@serverX ~]#passwd julietChanging password for user juliet. New password:julietBAD PASSWORD: The password is shorter than 8 characters Retype new password:julietpasswd: all authentication tokens updated successfully.
Continue adding the remaining users in the steps below and set initial passwords.
romeo
[root@serverX ~]#useradd romeo[root@serverX ~]#passwd romeoChanging password for user romeo. New password:romeoBAD PASSWORD: The password is shorter than 8 characters Retype new password:romeopasswd: all authentication tokens updated successfully.
hamlet
[root@serverX ~]#useradd hamlet[root@serverX ~]#passwd hamlet
reba
[root@serverX ~]#useradd reba[root@serverX ~]#passwd reba
dolly
[root@serverX ~]#useradd dolly[root@serverX ~]#passwd dolly
elvis
[root@serverX ~]#useradd elvis[root@serverX ~]#passwd elvis