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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started