cancel
Showing results for 
Search instead for 
Did you mean: 
MangoRender
Flight Engineer
Flight Engineer
  • 5,378 Views

Error on Lab: Manage Local Users and Groups

Jump to solution

I keep 'Failing' this lab due to some issue. The specific fail line is the "Verify the password expiration for users in the consultants group." I've confirmed that the /etc/login.defs file is to PASS_MAX_DAYS 30 and that all the consultant accounts are set to expire 90 days from the current day. 

For the last step 

  1. Additionally, force the consultant1, consultant2, and consultant3 users to change their passwords on the first login.

I had initially used the chage -M 0 option to force the password change but even tried the option in the solution chage -d 0. Still 'Failing'. 

Just posting here to see if it's an issue that needs to be fixed on RH's side or maybe it's something I missed.

Has anyone else had/has this issue?

31 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 706 Views

@sema1987 Please reverify the step you did in the lab for that objective. You can run lab finish command and then redo this lab from start.

0 Kudos
FEDECW
Mission Specialist
Mission Specialist
  • 663 Views

FEDECW_0-1730944183056.png

I CHECK EVERYTHING BUT I HAVE THE SAME PROBLEM

Chetan_Tiwary_
Community Manager
Community Manager
  • 649 Views

@FEDECW Please run lab finish command and then redo this lab from start.

0 Kudos
87951469
Flight Engineer
Flight Engineer
  • 149 Views

I have the same issue. Sep 2025. 

The instructions arent very clear on what is expected. 

87951469_0-1758550267785.png

 

shashi01
Moderator
Moderator
  • 147 Views

@87951469   

You are failing the grading script because the account/password expiration steps were missed.

 

Please set the account expiration date for consultant1, consultant2, and consultant3 using the chage -E command.

 

Also configure the default password expiration policy in /etc/login.defs.

 

Once these are set correctly, re-run the grading script and it should pass.

It looks like the grading script is failing because the account expiration date for the consultant users has not been set correctly. One common mistake is that learners copy the example date shown in the lab guide (such as 2025-08-12) instead of generating the correct date from their own system. The grading script expects the expiration date to be exactly 90 days from the current day on your system. To fix this, please run date -d "+90 days" +%F on your server to generate the correct date, and then use that value with the chage -E command for consultant1, consultant2, and consultant3. This will ensure the dates match what the grading script checks.

Please let us know if you are still facing any issues with your lab, and we will be happy to review the details with you further.

Screenshot From 2025-09-22 19-44-49.png

0 Kudos
87951469
Flight Engineer
Flight Engineer
  • 112 Views

Replied as below. 

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 132 Views

@87951469 could you please help with your password configuration screenshot or your command history so that I can check and see if there is an error or misconfiguration ?

0 Kudos
87951469
Flight Engineer
Flight Engineer
  • 116 Views

87951469_0-1758619331023.png

Steps taken as per lab 1- 10. 

Task 6 tells us to set the password and then task 9 tells us to force change on first login. 

Also you can see I executed chage -E and still I got a fail. 

 

87951469_1-1758619413244.png

 

JayBee91
Mission Specialist
Mission Specialist
  • 105 Views

I'm also getting a FAIL for Verifying default password expiration of users on serverb

 

I'm running sudo vim /etc/login.defs and changing PASS_MAX_DAYS from 99999 to 30

 

If I make ONLY that one change after starting the lab then run the lab grade users-review, I should at least get a PASS for that one task, right?

shashi01
Moderator
Moderator
  • 85 Views

@JayBee91 

You are correct that setting PASS_MAX_DAYS to 30 is required, but the grader doesn’t check this setting on its own. It runs through all the tasks together: group creation, membership, sudo access, user passwords, and expiration settings. That’s why the result still shows FAIL for this step. Once you complete the other required tasks, this check will also pass.

0 Kudos
Join the discussion
You must log in to join this conversation.