Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

oginastday standino LAST D Lab 12 - Understanding Basic Security Show the curren

ID: 3708457 • Letter: O

Question

oginastday standino LAST D Lab 12 - Understanding Basic Security Show the current aging information for a specific user's account. Command: chage -I labuser 6. abuseroLL-PC chage I Labuser Last password change Password expires Password inactive Account expires Mininum number of days between password change Maximum number of days between password change Number of days of warning before password expires : Feb 13, 2016 : never : never : never 7. Set the following information for the lab user's account: "Need to elevate permissions. a. Set the account to expire for March 01, 2016. b. Set a password inactive to 7 days. c. Set the minimum days between password change to 2 days. d. Set the maximum number of days between password changes to 30 days. e. Set the number of days of warning before password expires to 10 days. f. Set password expiration for February 20, 2016 s sudo chage 1 labuser : Feb 13, 2016 : Mar 14, 2016 : Mar 21, 2016 : Mar 01, 2016 Last password change Password expires Password inactive Account expires Minimum number of days between password change axinum number of days between password change Number of days of warning before password expires 30 10 Questions: Give the commands for each of the changes listed in seven (7). 1. Account expiration: March 01, 2016 2. Password inactive: 7 days 3. Minimum days between changes (password expires): 2 days (It is 2 days from current datel) 4. Maximum days between changes: 30 days 5. Number of days warning before password expires: 10 days

Explanation / Answer

1. $ chage -E 2016-03-01 labuser
chage --> changing the account setting
-E --> Password expiry setting command
yyyy-mm-dd --> password expiry date
user --> the particular user id

2. $ chage -I 7 labuser
chage --> changing the account setting
-I --> Password will be inactive after it expires   
7 --> after 7 days of password expired
user --> the particular user id

3. $ chage -m 2 labuser
chage --> changing the account setting
-m --> minimum days between password expired
user --> the particular user id

4. $ chage -M 30 labuser
chage --> changing the account setting
-M --> maximum days between changes

user --> the particular user id

5. $ chage -W 10 labuser
chage --> changing the account setting
-W --> number of days of warning before changing the password
user --> the particular user id