Question: Write a shell script that enables you to manage users. It should have the following menu items: Add a user with password Add a
Write a shell script that enables you to manage users. It should have the following menu items: Add a user with password Add a group without a password Add a user to a group . Lookup a user(Returns Name). If the user does not exist in the lookup, your script will return "Not a Valid User". (hint: use getent passwd "$user">/dev/null 2>&1 command to test. Makes life a lot easier) Quit Use a command/menu to exit script and loop until user decides to exit. Test for correct options. Please remember to comment where appropriate.
Step by Step Solution
There are 3 Steps involved in it
binbash Script to manage users and groups while true do echo User Management Menu echo 1 Add ... View full answer
Get step-by-step solutions from verified subject matter experts
