Question

Section IV: Create the following users and groups (remember to setup a password for each user) User Name Login Name Group Mem
0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

= root@ubuntu: - root@ubuntu:~# groupadd Finance root@ubuntu:-# groupadd Accoutant root@ubuntu:-# groupadd HumanResources roo

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

+ root@ubuntu: Q o -g -g root@ubuntu:-# useradd -C root@ubuntu:~# useradd -C root@ubuntu:~# useradd -C root@ubuntu:-# useradd

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”

a O + root@ubuntu: - root@ubuntu:-# passwd SNaweed New password: Retype new password: passwd: password updated successfully r

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

+ 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@u

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

+ root@ubuntu: root@ubuntu:-# mkdir Main root@ubuntu:-# cd Main root@ubuntu:-/Main# mkdir Admin Students root@ubuntu:-/Main#

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.

Add a comment
Know the answer?
Add Answer to:
Section IV: Create the following users and groups (remember to setup a password for each user)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT