SOLUTION
The following have been implemented on Ubuntu
Linux.
Section IV: Create
the following users and groups.
For this solution we have to create the necessary groups first,
using the following commands.
groupadd Finance
groupadd
Accountant
groupadd
HumanResources
groupadd IT
groupadd
Developer
The next step is to add users with the corresponding
credentials
useradd -c "Naweed
Sayed" -g Finance -g Accountant SNaweed
useradd -c "Said
Sadat" -g Finance SSaid
useradd -c "John Smith" -g
Finance SJohn
useradd -c "Temp Worker" -g
Finance -e 2020-12-25 HAli
useradd -c "Jenny Daniel" -g
HumanResources DJenny
useradd -c "Michael Prince" -g
HumanResources MPrince
useradd -c "Faheem Nazeri" -g
HumanResources NFaheem
useradd -c "Ahmad Mushtiq" -g
IT -g Developer MAhmad
useradd -c "Kushbu
Patel" -g IT -g Admin PKushbu
Note:
It must be noted that the following options
-c Add comment (includes Full Name)
-g Add primary group
for login name "HAli" an expiry date has been specified using
the option "-e"
.
Adding passwd using the command “passwd
loginname”
Section V: Account
Aging policy
The Account aging policy is implemented using the command
“chage”. Given
below are the commands for the users.
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 SNaweed
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 SSaid
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 SJohn
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 DJenny
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 MPrince
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 NFaheem
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 MAhmad
chage -E 2021-03-30 -M 70 -I 5
-m 20 -W 10 PKushbu
Note:
Expect for temporary worker “Hali” every other users aging
policy has been
changed.
-E Account
Expiry
-M Password
Expiry
-I
Inactivity Period
-m
Minimum Days before Password Change
-W Password
Expiry Warning Days.
Section VI: Folder
Structure
The directory structure as such mentioned in the screen shot has
been created
under “/root” directory using the following
commands.
mkdir Main
cd Main
mkdir Admin
Students
ls
cd Admin/
mkdir HR Other
ls
cd ..
cd Students/
mkdir Personal
Record
ls
cd ../..
pwd
tree
Note:
The “mkdir” command is used to create
directories and “tree” command to
display the tree structure
Hope this helps. Kindly get back to me for clarifications if
any.
= root@ubuntu: - root@ubuntu:~# groupadd Finance root@ubuntu:-# groupadd Accoutant root@ubuntu:-# groupadd HumanResources root@ubuntu:-# groupadd IT root@ubuntu:-# groupadd Developer root@ubuntu:-# groupadd Admin root@ubuntu:-# OO
+ root@ubuntu: Q o -g -g root@ubuntu:-# useradd -C root@ubuntu:~# useradd -C root@ubuntu:~# useradd -C root@ubuntu:-# useradd -C root@ubuntu:~# useradd -C root@ubuntu:~# useradd -C root@ubuntu:# useradd -C root@ubuntu:~# useradd -C root@ubuntu:~# useradd -C root@ubuntu:~# "Naweed Sayed" Finance Accountant SNaweed "Said Sadat" -g Finance SSaid "John Smith" - 9 Finance SJohn "Temp Worker" -g Finance -e 2020-12-25 HAli "Jenny Daniel" -g HumanResources DJenny "Michael Prince" - g Human Resources MPrince "Faheem Nazeri" HumanResources NFaheem "Ahmad Mushtiq" -9 IT -g Developer MAhmad "Kushbu Patel -g IT -g Admin PKushbu -g o
a O + root@ubuntu: - root@ubuntu:-# passwd SNaweed New password: Retype new password: passwd: password updated successfully root@ubuntu:-# passwd SSaid New password: Retype new password: passwd: password updated successfully root@ubuntu:~# passwd SJohn New password: Retype new password: passwd: password updated successfully root@ubuntu:-# passwd Hali New password: Retype new password: passwd: password updated successfully root@ubuntu# asswd DJenny
+ root@ubuntu: root@ubuntu:-# chage -E 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage -E 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage -E 2021-03-30 -M 70 - I 5 20 root@ubuntu:-# chage 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage -E 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage - E 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage - E 2021-03-30 -M 70 -I 5 -M 20 root@ubuntu:-# chage - E 2021-03-30 -M 70 I 5 -M 20 root@ubuntu:-# chage -E 2021-03-30 -M 70 - I 5 20 root@ubuntu:-# chage -2 SNaweed Last password change Password expires Password inactive Account expires Minimum number of days between password change Maximum number of days between password change Number of days of warning before password expires root@ubuntu:~# -W -W -W -W -W -W -W -W -W 10 SNaweed 10 SSaid 10 SJohn 10 DJenny 10 MPrice 10 MPrince 10 NFaheem 10 MAhmad 10 PKushbu -M Jul : Oct : Oct Mar : 20 : 70 10 30, 08, 13, 30, 2020 2020 2020 2021
+ root@ubuntu: root@ubuntu:-# mkdir Main root@ubuntu:-# cd Main root@ubuntu:-/Main# mkdir Admin Students root@ubuntu:-/Main# ls Admin Students root@ubuntu:-/Main# cd Admin/ root@ubuntu:-/Main/Admin# mkdir HR other root@ubuntu:-/Main/Admin# ls HR Other root@ubuntu:-/Main/Admin# cd root@ubuntu:-/Main# cd Students/ root@ubuntu:-/Main/Students# mkdir Personal Record root@ubuntu:-/Main/Students# ls Personal Record root@ubuntu:-/Main/Students# cd ../.. root@ubuntu:-# pwd /root root@ubuntu:-# tree Main Admin HR Other Students Personal Record [ E O files 7 directories, root@ubuntu:-#