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

Needs some Help with this command for Linux Operations Systems 1.Create a new gr

ID: 3816019 • Letter: N

Question

Needs some Help with this command for Linux Operations Systems

1.Create a new group called Students in the reserved range of GIDs. What command did you use to create this group?

2.What command would you use to obtain information about this new group?

                        What was the GID of this group?

3.What command would you use to add the Student group as a secondary group for the student1 user?

       What command can you use to verify that student1 was added to the Student group?

4.What command would you use to determine the last time that the student1 user logged into the system?

5.What command would you use to delete the student1 user but not their home directory?

Explanation / Answer

1.groupadd students
It creates a new group students
2.cat /etc/groups
Here we find GID of the group
3.usermod -g -G students student1
This command assigns group students as secondary group to user student1
id student1 command displays all the information of user student1

4.last student1 | less
This command gives last log information

5.sudo userdel student1
It delets user student1 but not their home directory

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote