Day 02: Temporary User Setup with Expiry

Question:

As part of the temporary assignment to the Nautilus project, a developer named mariyam requires access for a limited duration. To ensure smooth access management, a temporary user account with an expiry date is needed. Here’s what you need to do:

  • Create a user named mariyam on App Server 3 in Stratos Datacenter. Set the expiry date to 2027-03-28, ensuring the user is created in lowercase as per standard protocol.

Note: You can find the infrastructure details by clicking on the Details of all Users and Servers button on the top-right section of the page.


Solution:

ssh banner@stapp03
sudo useradd mariyam -e 2027-03-28

sudo chage -l mariyam
Last password change                                    : Oct 26, 2026
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : Mar 28, 2027
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

By shafdo

Leave a Reply

Your email address will not be published. Required fields are marked *