QuestionCase ScenarioIn the User Management challenge lab, you were tasked with creating users and groups. Using the commands one at a time from the command line can be a tedious process and could lead to potential errors in syntax. It is your duty, as an administrator, to make the process as seamless and efficient as possible.Objectivescrete a bash script to perform user management tasks as outli
...[Show More]
Question
Case Scenario
In the User Management challenge lab, you were tasked with creating users and groups. Using the commands one at a time from the command line can be a tedious process and could lead to potential errors in syntax. It is your duty, as an administrator, to make the process as seamless and efficient as possible.
Objectives
crete a bash script to perform user management tasks as outlined below:
- a new group.
- a new user.
- set a password for each user that is created.
- Ensure that the new user created is a member of the new group created.
- Crete a directory at the root / of the file system with same name as the user created.
- Set the ownership of the directory to the user and group created.
- Set the permissions of the directory to full control for the owner and full control for the group created.
- Set the permissions to ensure that only the owner of a file can delete it from the directory.
- Ensure that the script is executable.
Hints
- Logical order is important.
[Show Less]