Lab 10 – Troubleshooting Linux and Apache Systems
Materials Needed:
1) Computer
2) Internet
connection
3) Root
access to Linux account
Assignment:
·
Managing Users and Groups
- Log onto the Linux computer
with your account and find the list of users and groups in /etc/passwd and /etc/group.
- Note that the passwords are
not displayed in passwd. They are stored in
/etc/shadow. You need to switch to the root account to view the encrypted
passwords in /etc/shadow [This is done by typing su
at the command prompt and then entered the administrator password.]
- What accounts are in the
group netsecurity?
- What groups is your
account in?
- What are the permissions
on your userid's /home folder?
·
Turning Off Unnecessary Services
- Log onto the Linux computer
with your account
- find the list of services
running by typing ps aux | more
- find the list of services
that you are running by typing ps
aux | grep username where username is your
username
- Run netstat
-a | more from the command line.
- (Run netstat
-h to find other options for netstat)
- How would you kill(terminate) a process?
- Briefly discuss these two
ways to determine what services/programs are running in Linux.
·
Event Logging
- Log onto the Linux computer
with your account
- Find out who else is on the
computer using who and finger [log file /var/run/utmp]
- Use last to track
who has logged in and out of the system [log file /var/log/wtmp]
- When was the system last rebooted?
- Log in as root and view /var/log/secure to track access and authentication
information
·
Review the Apache (httpd) log files
- Switch to the root account
- View the access_log
file in /etc/httpd/logs
- View the error_log
file in /etc/httpd/logs
- /etc/httpd/conf
contains the configuration file httpd.conf for
Apache
·
Host Hardening, Installation, and Patching
- Identify the version of
linux installed on the computer.
- Does this computer need "patch
updating"? How would you apply the updates?