SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Redhat Linux Administration
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. ;'___ /var/www' will tell you the ACL settings of /var/www
fdisk -l
chcon -R -t httpd_sys_content_t /home/michael/public_html
ls -Z
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
2. ____.com - ____.net - and ____.org domains are generic domain names that can't be assigned on the Internet. You can therefore use any of these domain names on your private network.
rpm -V pam
DocumentRoot
showmount -a
example
3. The main Squid configuration file is ____/squid.conf
/etc/lvmtab
/etc/squid/
iptables -F
5
4. if you want to create a database file named webpass in the /etc/httpd directory - for user "e" - you'd start with the following command:
lvdisplay -D /dev/rootvg/tmplv
htpasswd -c /etc/httpd/webpass e
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
ok
5. output from ____ is: Disk /dev/cciss/c0d0: 36.4 GB - 36414750720 bytes... plus listing of partitions - for each physical drive
fdisk -l
arted; mklabel k
tune2fs
dd if=./diskboot.img of=/dev/sdc
6. Perform a simple check of the file system. minor-num is x.
-i (do not use -U or -F!)
ServerTokens OS from http.conf
yum clean all
parted; check x
7. The rpm ____ option installs the package - if it isn't already installed.
ok
parted /dev/hda print
-i
resize2fs
8. Some computers built before 1998 may have a BIOS that limits access to hard disks beyond the 1024th cylinder. Some older BIOSs report only 1024 cylinders on a hard drive no matter how many actual cylinders are present. Computers that are subject to t
tune2fs
/boot
service vsftpd status
iptables -F
9. rpm ____ verifies the installed zip rpm against the rpm database
elinks
NameVirtualHost
htpasswd -c /etc/httpd/webpass e
rpm -V zip
10. Run the ____ command to find the device associated with the USB key.
(rpm -q)p file (for rpmfile name)
fdisk -l
-i (do not use -U or -F!)
showmount -a
11. This line placed in /etc/hosts.deny will mean that only computer allowed to access our Telnet server has an IP address of 192.168.1.10
rpm -Va
fdisk
telnetd : ALL EXCEPT 192.168.1.10
NameVirtualHost
12. use parted to display disk geometry for /dev/hda and end up in shell
parted /dev/hda print
ServerTokens OS from http.conf
fdisk -l
rpm -ivh --replacepkgs xxxx*
13. If you configure other directories for Web services - you'll need to change their ACL settings. For example - if you create and then use the /www directory - run the following commands:
ErrorLog
yum update kernel
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
lvdisplay -D /dev/rootvg/tmplv
14. for SELinux - you'll at least want to use the Security Level Configuration tool to activate the Allow Squid Daemon To Connect To The Network option - also known as the squid_connect_any boolean. Alternatively - you can activate this boolean with the
e2fsadm
setsebool -P squid_connect_any 1
/etc/squid/
LVM
15. Virtual Host Configuration: Creates an custom log; the location is based on the DocumentRoot. (from http://www.books24x7.com/book/id_18196/viewer.asp?bookid=18196&chunkid=218985502)
(rpm -q)p file (for rpmfile name)
grep "[.*]" server1.repo
yum -y update httpd
CustomLog
16. Virtual Host Configuration: Assigns an e-mail address for the specified virtual host.
iptables
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
rpm -V pam
ServerAdmin
17. rpm options include rpm -q [package name] or rpm -qf [path/file] or rmp -q____
nfs
fdisk -l
(rpm -q)p file (for rpmfile name)
iptables
18. You can use the ____ tool after installation to add any package groups that you missed.
pirut
5
/etc/squid/
showmount -a
19. To verify integrity of an rpm package - ____/rpm-gpg/RPM-GPG-KEY-redhat-release
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
/etc/squid/
nfs
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
20. ____ prints superblock and block group information.
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
hkconfig --list httpd
CustomLog
dumpe2fs
21. ___ shows me what config files were installed when the httpd package was installed
rpm -qc httpd
arted; mklabel k
iptables
telnetd : ALL EXCEPT 192.168.1.10
22. The most straightforward way to make sure Apache starts in bootlevels 3 and 5
AllowOverride
service vsftpd status
chkconfig --level 35 httpd on
-K
23. You can check the status of your share. If it's working - you should see the contents of the /etc/exports directory when you run the following command:
showmount -e
tune2fs
arted; mklabel k
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
24. This line placed in /etc/hosts.deny sends a customized error message for Telnet users on the crack.org domain saying sorry [insert client info] - access denied
rpm -qc httpd
/boot
example
telnetd : .crack.org : twist /bin/echo Sorry %c - access denied (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
25. ___ will tell me if any files in the pam package have changed since it was first installed
ServerTokens OS from http.conf
rpm -V pam
htpasswd -c /etc/httpd/webpass e
bootable partitions
26. You ran "e2label /dev/sda" and got "bad magic number" Why?
filesystem type is not ext2 or ext3
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
wget (http://devmon.dev.schwab.com/index.html)
/etc/squid/
27. create a usb boot disk if the usb stick is /dev/sdc and the file you need is in your present directory
parted /dev/hda print
NameVirtualHost
rpm -Va
dd if=./diskboot.img of=/dev/sdc
28. Virtual Host Configuration: Sets a root directory for the virtual host.
DocumentRoot
tune2fs
ServerName
arted; mklabel k
29. for http - if you implement "UserDir public_html" - you need to also ____ /home/michael/public_html if you want /home/michael/public_html accessible
fdisk -l
elinks
chmod 705
-l
30. To check status of ftp daemon
service vsftpd status
arted; mklabel k
/boot
dd if=./diskboot.img of=/dev/sdc
31. When you configure Squid on your system - you need to allow access through appropriate ports and SELinux settings. The simplest approach with respect to Squid configuration assumes that all clients use the default Squid port 3128 - using TCP - where
iptables
NameVirtualHost
yum -y update httpd
-l
32. Apache supports security by specifying active ports through the Listen and ____ directives.
chmod 705
setsebool -P htttpd.enable.homedirs 1
NameVirtualHost
iptables -F
33. To update a kernel - 1) ____ 2) boot new kernel to test 3) revert to old kernel if problems 4) yum remove kernel-oldversion if no problems
CustomLog
chkconfig --level 35 httpd on
/etc/squid/
yum update kernel
34. ___________ can be on a RAID device
yum install httpd
parted; check x
chcon -R -t httpd_sys_content_t /home/michael/public_html
bootable partitions
35. This line: in /etc/hosts.allow: telnetd : 172.16.72.0/255.255.254.0 is ____
ok
chmod 701
rpm --import /etc/pki(/rpm-gpg/RPM-GPG-KEY-redhat-release)
tune2fs
36. ___ http://devmon.dev.schwab.com/index.html will make a local copy of the index.html file from devmon
wget (http://devmon.dev.schwab.com/index.html)
ServerAdmin
grep "[.*]" server1.repo
-l
37. when an rpm install fails for xxxx because the same version is already apparently installed - run ____ to just install it all again
rpm -V
chkconfig --level 35 httpd on
chmod 705
rpm -ivh --replacepkgs xxxx*
38. rpm ____ verifies all installed rpms against the rpm database
mke2fs
squid -z
showmount -e
rpm -Va
39. SELinux must be configured to Allow HTTPD To Read Home Directories. (Alternatively - activate the httpd_enable_homedirs boolean with the __ command.)
DocumentRoot
ServerAdmin
setsebool -P htttpd.enable.homedirs 1
resize2fs /dev/myvg/homevol
40. ____ can expand and shrink ext2 and ext3 file systems
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
ServerName
(rpm -q)p file (for rpmfile name)
resize2fs
41. in httpd.conf - "____ None" disables any .htaccess files. Otherwise - .htaccess can allow others to administer your server - starting from the DocumentRoot directory. If .htaccess is in a subdirectory - such as /var/www/html/data/ - the additional di
(rpm -q)p file (for rpmfile name)
rpm -qc httpd
setsebool -P squid_connect_any 1
AllowOverride
42. The default Red Hat Enterprise Linux firewall blocks access to an NFS server. While inelegant - the following command "flushes -" or turns off - the standard Linux firewall from the local computer.
/etc/lvmtab
fdisk -l
iptables -F
DocumentRoot
43. This line placed in /etc/hosts.deny denies all services except TFTP to computers in the example.org domain
ServerTokens OS from http.conf
CustomLog
service vsftpd status
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
44. To list under which run levels the web service will start
rpm -V
dumpe2fs
lvextend -L4G /dev/rootvg/tmplv
hkconfig --list httpd
45. use grep to count how many repositories have been configured in the file server1.repo
mke2fs
LVM
grep "[.*]" server1.repo
hkconfig --list httpd
46. how to install both mod_ssl and squid packages
setsebool -P htttpd.enable.homedirs 1
yum install mod_ssl squid
filesystem type is not ext2 or ext3
yum install httpd
47. rpm ____ to install kernel updates
ServerName
-i (do not use -U or -F!)
ALL EXCEPT in.tftpd : .example.org (http://books24x7.com/viewer.asp?bookid=18196&chunkid=908275044)
chkconfig --level 35 httpd on
48. This line looks deceptively simple; it limits what readers see about your Web server when you browse to a nonexistent page. If you don't use this command - outsiders can see whether you've loaded modules such as Perl - Python - and PHP. Sharing this
ServerTokens OS from http.conf
chcon -R -u system_u /www/; chcon -R -t httpd_sys_content_t /www/
yum update kernel
AllowOverride
49. For linux ext2 there is an easier way than using resize2fs. LVM 1 ships with a utility called __________ which does the lvextend and resize2fs for you (it can also do file system shrinking)
ErrorLog
showmount -e
chmod 705
e2fsadm
50. The file that might contain: oldvg - rootvg - etc.
iptables
resize2fs /dev/myvg/homevol
/etc/lvmtab
yum install httpd