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 

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

1 Expert Approved Answer
Step: 1 Unlock

binbash Script to manage users and groups while true do echo User Management Menu echo 1 Add ... View full answer

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 Banking Questions!