Linux Pro Practice Cert

1. According to the command help, what does the -G do with the
usermod command?
Assigns a user to a new list of supplementary groups.
Use the usermod command with the -G switch to assign a user to
a new list of supplementary, or secondary group. Using -G will
replace the user’s current list of secondary groups with the new
list used with the command.
2. According to the command help, which switch can you use with
the killall command to kill a process group instead of just a
process?
-g
Use -g with the killall command to kill a process group. To find
the correct switch to use, type: killall -h or killall –help
3. As a part of your daily maintenance, you scan for and kill any
zombie processes on the system.
Task:
-Use the ps aux command to find zombie processes
-Kill the zombie processes
Type:
kill -9 1301
kill -9 1570
kill -9 1980
Zombie processes have a Z in the STAT column of the ps aux
output.
4. An assistant administrator has been modifying permissions on
the /hr directory. You want to quickly change the permissions
on /hr to match the permission settings documented in your
company’s security policy.
Task:
User = read, write, execute
Group = read, execute
Other = read, execute
Type:
chmod 755 /hr
5. Brenda Cassini (bcassini) has recently married. You want to
update her user account to reflect her new last name.
Complete the following tasks:
-Rename the user account to bpalmer.
-Change the comment field to read Brenda Palmer.
-Change the home directory to /home/bpalmer, moving the
contents of the old home directory to the new location.
Type:
usermod -c “Brenda Palmer” -d /home/bpalmer -m -l bpalmer
bcassini
cat /etc/passwd
ls /home
6. Brenda Cassini (bcassini) is taking over the payroll
documentation for Will Adams (wadams).
Task:
Give the bcassini user ownership of the /hr/payroll file.
Type:
chown bcassini /hr/payroll
ls -l /hr

Linux Pro Practice Cert
Study online at quizlet.com/_6ht3mv

7. A change in company policy requires users of the hr group to make changes to the files in the /hr
directory.
Task:
Give the write group permission to the files in the /hr directory (in addition to any other permissions
already given).
Type:
chmod g+w /hr/*
ls -la /hr
8. Corey Flynn (cflynn) currently belongs to several groups. Due to some recent restructuring, he no
longer needs to be a member of the hr group.
Task:
-Remove cflynn from the hr group.
-Preserve all other group memberships.
Type:
groups cflynn
usermod -G mgmt1.it
cflynn
9. Currently all the Sales people in your company belong to a group called sales. The VP of Sales wants
two Sales groups: western sales division and eastern sales division.
Task:
Rename the sales group to western_sales_division.
-Create the eastern_sales_division group.
-Assign aespinoza as the only member of the eastern_sales_division group.
Type:
groupmod -n
western_sales_division
sales
groupadd
eastern_sales_division
usermod -G
eastern_sales_division
aespinoza
10. The /dev/sdb2 volume is mounted to an uncommon mount point directory: /root/newdrive. You need to
remove the volume from the /root/newdrive mount point and remount it to the /mnt/drive2 directory.
Tasks:
Unmount /dev/sdb2 from /root/newdrive
Mount /dev/sdb2 to /mnt/drive2
Use umount
/root/newdrive to
unmount the volume
from the mount point
directory.
Use mount /dev/sdb2
/mnt/drive2 to mount
the volume.
11. During a random security audit, you found that ownership (and group ownership) for the /hr directory is
set to Will Adams (wadams). For security reasons, you need to change the ownership. You want to give
ownership to Brenda Cassini (bcassini), the office manager, and you want to give group ownership to the
hr group for all files in the directory. Once you do this, though, you have to reset group ownership on the
/hr/personnel file to mgmt1.
Task:
Give bcassini ownership of the /hr directory and all of its contents.
Give hr group ownership of the /hr directory and all of its contents.
Return group ownership of the /hr/personnel file to mgmt1.
Type:
chown -R bcassini:hr
/hr
chgrp mgmt1
/hr/personnel
12. Earlier in the day you created a user account for Brenda Cassini (bcasini). When she goes
to log on, she can’t. You realize that you misspelled her user name as bcasini.
Task:
Change the user account name from bcasini to bcassini.
Change the home directory to /home/bcassini.
You are logged on as wadams, so you will have to perform these tasks as the root user. The
root password is 1worm4b8.
Type:
su-
1worm4b8
usermod -l bcassini bcasini
usermod -d /home/bcassini
bcassini
13. An employee in another department recently provided several important files for your
current assignment. The files are compressed in a tar file. Today you need to extract each
file and begin to use the files.
Task: Extract the files in /proj_files.tar.gz into the /projects directory.
Type:
tar -xzf /proj_files.tar.gz -C /projects
14. The /etc/shells file contains a list of shells that are available on the current system. View
the contents of the file and answer the following question.
Of the shells listed below, which are not available on the system?
/bin/ksh
Use cat /etc/shells to view the
contents of the file. You should
notice that /bin/ksh is not in the list
of available shells.
15. Every seven years, your company provides a 6 week sabbatical for every employee. Vera
Edwards (vedwards), Corey Flynn (cflynn), and Bhumika Kahn (bkahn) are leaving today,
while Maggie Brown (mbrown), Brenda Cassini (bcassini), and Arturo Espinoza (aespinoza)
are just returning.
The company security policy mandates that user accounts for employees gone for longer
than two weeks be disabled.
Task:
-Lock (disable) the following user accounts:
vedwards
cflynn
bkahn
-Unlock (enable) the following user accounts:
mbrown
bcassini
aespinoza
Type:
usermod -l vedwards
usermod -l cflynn
usermod -l bkhan
usermod -u mbrown
usermod -u bcassini
usermod -u aespinoza
16. The /hr directory is used by members of the Human Resources team to keep important employee
documents. Over time, you notice that permissions set on each file have become inconsistent. You
want to make sure that all files in the /hr directory have the same permissions set.
Task: Configure permissions on all files in the /hr directory as follows:
User and group owners should have read and write permissions to the files.
The other group should have no permissions on any file.
Type:
chmod 660 /hr/*
ls -la /hr
17. The hr group currently owns the /hr/personnel file; however, the mgmt1 group should own the file to
protect employee privacy.
Task:
Change the group ownership of the /hr/personnel file from hr to mgmt1.
Type:
chgrp mgmt1
/hr/personnel
18. The IT manager has asked you to setup dual boot capabilities on this Linux system so the user can
boot to either Windows 7 or Linux, with Windows 7 being the default boot option. There is an
external hard drive connected to this system with Windows 7 installed on it. In this lab, you will
configure GRUB 2 to add a Windows 7 menu option and make it the default boot option.
Tasks:
-Change the default menu option for the GRUB2 boot loader to Windows 7.
-Use the grub2-mkconfig command to make the 30_os-prober script find the Windows 7 operating
system on the external hard drive and add it as an entry in the boot menu.
-Reboot the machine and select the Windows 7 option from the boot menu.
Type:
vi /etc/default/grub
i G
RUB_DEFAULT=Windows
7 e
sc
:wq
grub2-mkconfig -o
/boot/grub/grub.cfg
reboot
select windows 7 option
19. The IT manager in your organization has asked you to change the GRUB_TIMEOUT parameter from 5
seconds to 10 seconds to give the users more time to make a menu selection from the GRUB menu
before the default operating system is booted. Once you have changed the GRUB_TIMEOUT
parameter from 5 seconds to 10 seconds, reboot the operating system to see the changes made to
the wait time from the GRUB menu. After rebooting the operating system, login with the username
root and password 1worm4b8.
Tasks:
-Change the GRUB_TIMEOUT parameter from 5 seconds to 10 seconds
-Reboot the operating system to see the changes made to the wait time from the GRUB menu
-Login with the username root and password 1worm4b8
Type:
vi /etc/default/grub
i c
hange first line of file to
GRUB_TIMEOUT=10
esc
:wq
grub2-mkconfig -o
/boot/grub2/grub.cfg
reboot
root
1worm4b8
20. The IT manager in your organization has asked you to install the fontconfig-3.10.87-
5.fc24.rpm package, which is located in the /home/wadams/Downloads directory.
Task:
-Switch to the root user, using 1worm4b8 for the root user password. (You must have
root user permissions to install packages.)
-Install the package, fontconfig-3.10.87-5.fc24.rpm package, which is located in the
/home/wadams/Downloads directory.
Type:
su –
1worm4b8
rpm -ivh
/home/wadams/Downloads/fontconfig-
3.10.87-5.fc24.rpm
21. The IT manager in your organization has asked you to install the pulseaudio
equalizer.noarch package.
Task:
Install the pulseaudio-equalizer.noarch package.
Type:
dnf install pulseaudio-equalizer.noarch
22. Linda Blaine (lblaine) and Rhonda Conger (rconger) are temporary employees who
have been auditing your organization’s financial documents. Their user accounts are
members of the auditors group. They have completed their work and have moved on to
new assignments. You need to remove their user accounts and home directories, and
the auditors group from the system.
Task:
-Delete the following user accounts and their corresponding home directories:
lblaine
rconger
-Delete the auditors group.
Type:
userdel -r lblaine
userdel -r rconger
groupdel auditors
23. The Linux sever, that you are the system administrator of, is not functioning properly.
To begin your troubleshooting process, you want to set the default target to
rescue.target. Rescue.target is a special target unit that will run a base system and a
rescue shell.
TASK:
-Use the systemctl command to make rescue.target the default boot target.
Type:
systemctl set-default rescue.target
24. Maggie Brown (mbrown) and Corey Flynn (cflynn) have recently been hired in the
Human Resources department. You have already created the two user…
#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational