This document provides instructions for a practical assignment on managing local Linux user passwords. It asks students to write commands to: 1) Add 4 users with initial passwords, 2) Set the password expiration for those users to 90 days in the future, 3) Change the password policy for one user to require changing every 15 days with a 2 day change wait and 3 day warning period, and set the inactive period to 100 days, 4) Prevent login for one user, and 5) Lock and unlock one user account to test locking.
This document provides instructions for a practical assignment on managing local Linux user passwords. It asks students to write commands to: 1) Add 4 users with initial passwords, 2) Set the password expiration for those users to 90 days in the future, 3) Change the password policy for one user to require changing every 15 days with a 2 day change wait and 3 day warning period, and set the inactive period to 100 days, 4) Prevent login for one user, and 5) Lock and unlock one user account to test locking.
This document provides instructions for a practical assignment on managing local Linux user passwords. It asks students to write commands to: 1) Add 4 users with initial passwords, 2) Set the password expiration for those users to 90 days in the future, 3) Change the password policy for one user to require changing every 15 days with a 2 day change wait and 3 day warning period, and set the inactive period to 100 days, 4) Prevent login for one user, and 5) Lock and unlock one user account to test locking.
Sub: Basics of Operating System and Shell Scripting
(2CSE204)
Practical 4: Managing Local Linux User Passwords
Lock accounts manually or by setting a password-aging policy in the shadow password file using chage commamd.
Write down commands to do the following tasks:
1. Add the user named as andrew. Initialize this user’s password with “andrew”. Same way create three more users named as bob, stacy, and caroline. Also initialize their passwords. 2. Determine the date 90 days in the future and set each of the four new user accounts to expire on that date. 3. Change the password policy for the bob account to require a new password every 15 days once modified the password, user need to wait for atleast 2 days before changing it again with new password Set the warning period of 3 days Set inactive period to 100 days from today 4. Prevent any other users to logging into the stacy user account. 5. Lock the andrew account and then try to access this user account. After this, unlock the same account.