PDF Version Available

This document is also available in PDF format: usermgmt.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

Link: https://aholdengouveia.name/LinuxAdmin/labexcercises/usermgmt.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Ticket

Ticket: ACME-2847
Requested by: HR
Systems: Both report servers

Background

HR has sent over a list of new hires, and one employee is leaving. Acme Corp needs a repeatable process for both, because this will happen every week. You will be working on the two servers you set up in the Server Setup lab: your Red Hat based server and your second server.

Learning Outcomes

By the end of this lab, you will be able to:

Requirements

  1. Write a script that creates accounts for everyone in the level 1 list of names (linked under Resources) on both servers. Choose a username format, and handle anything in the list that doesn't fit it.
  2. Run your script on the level 2 list of names.
  3. New users must change their password the first time they log in.
  4. Put users into department groups of your choice, and give one user admin rights using sudo, not root.
  5. Write an offboarding script for a departing user that locks the account, stops their running processes, and archives their home directory before the account is removed.
  6. Turn off direct root login over SSH.

Acceptance Criteria

Deliverables

Audience: the help desk team, who will use your process every time someone joins or leaves. Assume technical knowledge but not expertise. Screenshots are helpful to go with your descriptions.

Make sure your deliverables include documents for BOTH servers, clearly labeled with what the document is and which server it's for.

Resources

References, a video, a PowerPoint and some notes are available at my website Link: https://www.aholdengouveia.name/LinuxAdmin/Usermgmt.html

Level 1 list of names Link: https://www.aholdengouveia.name/LinuxAdmin/UserNamesLvl1.txt

Level 2 list of names Link: https://www.aholdengouveia.name/LinuxAdmin/UserNamesLvl2.txt