Problem

In this hands-on project, you create, use, and delete groups using command-line utilitie...

In this hands-on project, you create, use, and delete groups using command-line utilities.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type vi /etc/group and press Enter to open the /etc/group file in the vi editor. Add a line to the bottom of this file that reads:

groupies:x:1234:root,bozoette

This adds a group to the system with a GID of 1234 and the members root and bozoette. When finished, save and quit the vi editor.

3. Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of bozoette and the password of secret.

4. At the command prompt, type groups and press Enter. Of which groups is bozoette a member?

5. At the command prompt, type id and press Enter. Which group is the primary group for the user bozoette?

6. At the command prompt, type touch file1 and press Enter to create a new file called file1 in the current directory.

7. At the command prompt, type ls -l and press Enter. Who is the owner and group owner of the file called file1? Why?

8. At the command prompt, type newgrp groupies and press Enter to temporarily change bozoette’s primary group to groupies.

9. At the command prompt, type touch file2 and press Enter to create a new file called file2 in the current directory.

10. At the command prompt, type ls -l and press Enter. Who is the owner and group owner of the file called file2? Why?

11. Type exit and press Enter to log out of your shell.

12. Switch back to the command-line terminal (tty2) by pressing Ctrl+Alt+F2.

13. At the command prompt, type groupdel groupies and press Enter to remove the group called groupies from the system. Which file is edited by the groupdel command?

14. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 10