RHCSA Rapid Track
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
studentwith a password ofstudent.Open a window with a Bash prompt.
Select → → .
Become the
rootuser at the shell prompt.[student@serverX ~]$su -Password:redhatAdd the user juliet.
[root@serverX ~]#useradd julietConfirm that juliet has been added by examining the
/etc/passwdfile.[root@serverX ~]#tail -2 /etc/passwdtcpdump:x:72:72::/:/sbin/nologin juliet:x:1001:1001::/home/juliet:/bin/bashUse 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 hamletreba
[root@serverX ~]#useradd reba[root@serverX ~]#passwd rebadolly
[root@serverX ~]#useradd dolly[root@serverX ~]#passwd dollyelvis
[root@serverX ~]#useradd elvis[root@serverX ~]#passwd elvis