Question: 1. Start a new bash shell/terminal session. 2. Create a new user named test, e.g., horntest. Use the option -m to create a home directory.

1. Start a new bash shell/terminal session. 2. Create a new user named test, e.g., horntest. Use the option -m to create a home directory. NB. Youll probably have to escalate privileges to do this: remember sudo? NB. If you create the user incorrectly, learn the userdel command :-) 3. cat /etc/passwd to verify the add. Better: grep test /etc/passwd. Try both to become accustomed to both. 4. Lets add a password for user test: sudo passwd test, e.g., sudo passwd horntest. That was easy! Be sure to remember the password. 5. Create a new group, testgroup. (remember sudo) 6. Make tests primary group the group, testgroup. NB. You might want to man usermod, look at the -g parameter. Last time Ill mention it: sudo. 7. id test to see that the group assignment was successful. 8. Add yourself to testgroup (as a secondary group, leave your primary group alone). 9. Use id: id , e.g., id trang to verify 10. Capture the terminal interactions and paste below:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!