Problem

In this hands-on project, you detect modified package contents and observe shared librar...

In this hands-on project, you detect modified package contents and observe shared libraries used by programs.

1. Turn on your computer. After your Linux system has been loaded, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type rpm –ql grep | less and press Enter to view the file contents of the grep package on the system. When finished, press q to quit the less utility. Next, type rpm –V grep at the command prompt and press Enter to verify the existence of these files on the filesystem. Were any errors reported? Why?

3. At the command prompt, type rm –f /usr/share/doc/grep-2.6.3/AUTHORS and press Enter to remove a file that belongs to the grep package. Next, type rpm –V grep at the command prompt and press Enter to verify the existence of all files in the grep package. Were any errors reported? Why? If critical files were missing from this package, how could they be recovered?

4. Next, type ldd /bin/grep at the command prompt and press Enter to determine the shared libraries used by the grep command.

5. At the command prompt, type ls –l /lib/linux-gate.so.1 /lib/libpcre.so.0 /lib/libc.so.6 /lib/ld-linux.so.2 and press Enter to verify that these shared library files are available. If these libraries are missing, what should you do to regain them?

6. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search