6 Linux questions
Posted on 2003-10-26
Sorry it's me again with my linux questions ...I'm studying for my linux+ exam and I've got 6 questions that got me, Can anyone be so kind as to help me with the following 6 questions, much appreciated. Sorry if this is posted in the wrong thread.
1.) Sample Code
> set q=mx
What are you trying to do if you use the above sample code?
Get a list of name servers serving domain.com.
Find out which IP corresponds with mx.server.domain.com.
Get updated cache data for a caching proxy server.
Find out which server handles the mail of server.domain.com.
Find out the list of hosts in server.domain.com.
2.) Sample Code
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
The above message may appear when you boot your system. What is the purpose of the md driver?
Detecting known bugs in the MD sound cards
Detecting and managing Mitsumi CD-ROM drives
Detecting and managing MD chipsets
Detecting and managing software RAID arrays
Detecting known bugs in the CPU
3.) You wish to be paged with a list of users at a remote site to your alphanumeric pager when a user from a certain ISP attempts to log into your system.
Based on the above, which one of the following allows you to do this?
in.fingerd: *.ispname.com: (/usr/sbin/safe_finger -l @%h | /usr/bin/mailx -s %d-%h 5555555@pager ) &
*.ispname.com mailx -s "Intruder alert `finger @%h`" 5555555@pager
in.telnetd:ispname.: mail `finger -l @%n` 5555555@pager
in.telnetd: .ispname.com: (/usr/sbin/safe_finger -l @%h | /usr/bin/mail -s %d-%h 5555555@pager ) &
4.) Which one of the following commands helps you find out who is ping flooding your system?
5.) Sample Code
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
default router 0.0.0.0 UG 1 0 0 eth0
Which one of the following describes the meaning of "U Flags" in the above code?
The route is unavailable.
The route is unconfigured.
The route is unused.
The route is unknown.
The route is up.
You have been hired as a new administrator of an existing Linux network. The previous administrator left without telling anyone the root password to the server, and she cannot be reached.
Based on the above, which one of the following allows you to get root access from the console and to change the unknown password to a new one?
Without the root password, it is virtually impossible to get into Linux to do administrative tasks. The only way to fix the problem is to reinstall Linux completely. Once you have reinstalled, you should load the old data from tape backup.
You have to run John the Ripper password cracker on the /etc/passwd file. This will crack all passwords in this file. If shadow passwords are used, you will not be able to crack the passwords, and you must reinstall Linux.
Reboot using a boot disk. When you get the # prompt, type "set newroot passwd" and you will be prompted for a new root password. Reboot again and use the new root password you just set to log in. Type "reboot".
Reboot the server. When the system is starting, press the left shift key to get to LILO. When you get the LILO prompt, type "linux root=/dev/hda1 rw init=/bin/sh". When you get the # prompt, type "passwd" to change the password. Type "sync" and "reboot".
Reboot the server. When the system is starting, press the left shift key to get to LILO. When you get the LILO prompt, type "linux rootpass=newpasswd"; newpasswd will become root's new password.
Thanks in advance...