Lab Comprehensive 2 : Managing Users And Groups , Permissions And Processes
In this review, you will manage user and group accounts, set permissions on files and directories, and manage processes.
OUTCOMES
You should be able to:
-
Manage users and groups.
-
Set permissions on files and directories.
-
Remove processes that are consuming too much CPU.
BEFORE YOU BEGIN
Log in to workstation as student using student as the password.
On workstation, run lab rhcsa-rh124-review2 start to start the comprehensive review. This script runs a process that consumes the maximum CPU resources and creates the necessary files to set up the environment correctly.
[student@workstation ~]$ lab rhcsa-rh124-review2 start
INSTRUCTIONS
Accomplish the following tasks on serverb to complete the exercise.
• Terminate the process that is currently using the most CPU time.
• Create a new group called database that has the GID 50000.
• Create a new user called dbuser1 that uses the group database as one of its secondary groups. The initial password of dbuser1 should be set to redhat. Configure the user dbuser1 to force a password change on its first login. The user dbuser1 should be able to change its password after 10 days since the day of the password change. The password of dbuser1 should expire in 30 days since the last day of the password change.
• Configure the user dbuser1 to use sudo to run any command as the superuser.
• Configure the user dbuser1 to have a default umask of 007.
• The permissions on /home/student/grading/review2 should allow the group members of the database and the user student to access the directory and create contents in it. All other users should have read and execute permissions on the directory. Also, ensure that users are only allowed to delete files they own from /home/student/grading/review2 and not files belonging to others.
Evaluation
On workstation, run the lab rhcsa-rh124-review2 grade command to confirm success of this exercise.
[student@workstation ~]$ lab rhcsa-rh124-review2 grade
Finish
On workstation, run lab rhcsa-rh124-review2 finish to complete the comprehensive review. This script terminates the process and deletes the files and directories created during the start of the comprehensive review and ensures that the environment on serverb is clean.
[student@workstation ~]$ lab rhcsa-rh124-review2 finish