The following example includes restricted password protection for booting the Linux kernel. The example is based on the lilo.conf file you saw earlier, with a few lines removed that contain default values to show that you can remove those lines and still boot without a problem. Listing 1.3 uses cat to list the new configuration file and lilo to process it. Listing 1.3: Adding Password Protection to LILO [root]# cat lilo.conf # global section boot=/dev/hda3 prompt timeout=50 message=/boot/message default=linux # the Linux boot image image=/boot/vmlinuz-2.4.2-2 label=linux read-only root=/dev/hda3 password=Wats?Watt? restricted # additional boot images other=/dev/hda1 optional label=dos [root]# lilo Added linux * Added dos After running /sbin/lilo, reboot. Note that you don’t have to enter the password at the boot prompt because the configuration includes the restrict option. However, if you attempt to boot the system and provide optional input at the boot prompt, you will be asked for the password. The Linux Boot Prompt The LILO and GRUB processes are modified through their configuration files. The kernel boot process is modified through input to the boot prompt. As with the LILO append option and the GRUB kernel command, the boot prompt is used to pass parameters to the kernel. The difference, however, is that the boot prompt is used to manually enter kernel parameters, whereas the append and kernel commands are used to automate the process when the same parameters must be passed to the kernel for every boot. Use the boot prompt for special situations, such as repairing a system or getting an unruly piece of equipment running; or to debug input before it is stored in the lilo.conf or grub.conf file. You rarely need to pass parameters to the kernel through the boot prompt. When you do, it is either to change the boot process or to help the system handle a piece of unknown hardware. The kernel command from the grub.conf file shown in Listing 1.1 is an example of using boot input to change the boot process: kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hda3 This line comes from the grub.conf file, but it also can be entered interactively during the boot process. When the GRUB menu is displayed at boot time, the operator is given 10 seconds to 21
Note: If you are looking for cheap and inexpensive provider to host and run your tomcat application check Actions tomcat hosting services