Troubleshooting (Topic 2.214)

Review Questions

  1. What is the last stage of the boot process?

  2. You wish to configure your system to stop replying to all ICMP packets. What file in the /etc/ directory can you edit to accomplish this?

  3. You have been provided with a directory that contains all of the necessary files and libraries to run the passwd command in a chroot environment. This directory is called /usr/local/chrootenv. What command would you form to run the passwd command in a chroot environment?

  4. You wish to run the passwd command in a chroot environment. However, the command fails in this environment. You suspect a problem with the libraries that the command requires. What can you do to learn more about the libraries used by the passwd command?

  5. Your system currently does not create home directories for each user by default whenever you use the useradd command. What file can you alter to change this default behavior?

  6. You have been using the dmesg command and examining the output, a cumbersome procedure, to find out which kernel the system is currently using. Which command would give this information?

Answers

  1. Initializing and setting up daemons.

  2. /etc/sysctl.conf.

  3. chroot /usr/local/chrootenv passwd.

  4. Use the ldd command:

    ldd /usr/bin/passwd
  5. /etc/login.defs.

  6. uname -a.

Exercises

  1. Study the LDP Bootdisk HOWTO at http://www.ibiblio.org/pub/Linux/docs/HOWTO/Bootdisk-HOWTO. Make sure that you understand the boot process, how to create bootable CDs, and how to troubleshoot problems.

  2. Boot your system and ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.