Complete the following tasks. Tasks may be completed in any order. When you are
ID: 3842739 • Letter: C
Question
Complete the following tasks. Tasks may be completed in any order. When you are finished, click the Done button to close the lab and move to the next question. Complete the following tasks in the Linux operating system from the Command Line interface (CU): Append the hr group to the list of secondary groups associated with the m brown user account. Modify the permissions on the/hr directory as follows: User = read, write, execute Group = read, execute Other = read, execute View the installed modules and remove the debug driver module from the kernel.Explanation / Answer
1. usermod -G <secondary group1>, <secondary group2> <username>
example : usermod -G dba,oper munna
note : -g is used to add primary user to the user, where -G is used to add secondary groups to the user
2. Permissions to the /hr directory
read - 4 , write - 2, execute -1 so total is 4+2+1= 7 need to be assigned to the user
for group only read and execute so toatal is 4+1 =5
for others only read and execute again so total is 4+1 =5
so total permissions need to be assigned in the format of users,groups and others i.e., 755
chmod 755 <directory>
i.e., chmod 755 /hr
3.Let suppose the kernel directory be /usr/app/sys/exe/run, we have set of executables in the kernel directory.
if the executables need to be removed we can remove through command
rm -rf <executable name>
i.e., rm -rf debugdriver.exe
If an RPM is installed in the system it can be removed through rpm -e <package name>
Root is the adminstrative account used in linux, so login through root user and it prompts for a password
use switch user command to login to root user i.e., su root
password is p@ssw0rd