Checklist for Running Networking Services


As computer security issues increase with the rising onslaught of computer crackers and viruses, operating systems (such as Fedora or RHEL) in regards to the services they provide are moving toward more security rather than more ease-of-use. Simply installing server software isn't enough to get the service up and running.

If a service isn't working, check the following items to hunt down the problem:

  1. Is the software package installed? Each network service is represented by one or more software packages. Use the command rpm -qc packagename to find configuration files, and the command rpm -qd packagename to find documentation. If you selected only packages associated with Desktop categories when you first installed Fedora, most network server software may not be installed on your computer at all. Check Table B-1 (at the end of this appendix) to see which package is needed for a particular service to work. (There might be other package dependencies as well, to which you will be alerted when you try to install the package.) Then use the rpm command to install the software from the installation DVD or CD.

  2. Does the firewall permit access to the service? The first time you boot Fedora after installation, the firstboot procedure enables you to configure a firewall. If you choose the default firewall, most services will not be available outside your local computer. Refer to Chapter 14 for information on how to change your firewall configuration to open ports that provide the different services.

  3. Is the start-up script set up to launch the service automatically? Most network services are launched from start-up scripts that cause daemon processes to listen to the network continuously for requests for the service. See the "Networking Service Daemons" section for information on how to find start-up scripts and have them launch automatically.

  4. Does SELinux permit access to the service? When SELinux is enabled, it puts an additional layer of security over selected network services. If you get permission denied messages when you are sure that the firewall and file/directory permissions are set appropriately, run system-config-securitylevel . On the SELinux tab, check that the appropriate service (Web, FTP, Samba, and so on) is enabled. You can also disable SELinux to see if that solves the problem or simply set it to Permissive mode (to only have SELinux display messages about security issues, without enforcing them).

  5. Is the configuration file created for the service? Even if the daemon process is listening for requests for a network service, one or more configuration files associated with the service must probably be set up before requests will be accepted. Table B-1 lists important configuration files for each type of server.

  6. Does the configuration file permit proper access to the service? Within the configuration file for a service, there might be several levels of permissions that a user must go through to get permission to the service. For example, a configuration file might allow access to the service from a particular host computer, but deny access to a particular user .

  7. Are there other restrictions to the service being shared? Some standard Linux security measures might block access to a service that is otherwise open to being shared. For example, you can share a Linux directory using NFS or FTP servers, but local file permissions might block access to the directory or files within the shared directory.

Table B-1: Quick Reference for Network Services
Open table as spreadsheet

Feature

Package Names

Startup Script(s)

Daemon

Configuration File(s)

Web Server

Web-Servers (Apache)

httpd

httpd-manual

httpd- devel

/etc/init.d/httpd

/user/sbin/httpd

/etc/httpd/conf/httpd.conf

(Tux)

tux

/etc/init.d/tux

/usr/sbin/tux

/etc/sysconfig/tux

File Servers

FTP Servers (Vs- ftpd )

vsftpd

/etc/init.d/vsftpd

/usr/sbin/vsftpd

/etc/vscftpd/vsftpd.conf

/etc/vcftpd/user_list

FTP Server with Kerberos Support (Gss-FTP)

krb5 - workstation

/etc/init.d/xinetd

(/etc/xinetd.d/gssftp)

/usr/sbin/xineted

(/usr/kerberos/sbin/ftpd)

/etc/krb5.conf

Samba Windows File and Printers (SMB)

samba

samba-common

samba-client

samba-swat

system-config-samba

/etc/init.d/smb

/etc/init.d/winbind

/usr/sbin/smbd

/usr/sbin/nmbd

/usr/sbin/ winbindd

/etc/samba/smb.conf

UNIX Network File System (NFS)

nfs- utils

system-config-nfs

/etc/init.d/nfs

/etc/init.d/nfslock

/usr/sbin/rpc.nfsd

/usr/sbin/rpc. mountd

/sbin/rpc.statd

/etc/exports

AppleTalk File and Print Server (Netatalk)

netatalk

/etc/init.d/atalk

/usr/sbin/atalkd

/etc/atalk/*

Login Servers

Telnet

telnet-server

/etc/init.d/xinetd

(etc/xinetd.d/telnet)

/usr/sbin/xinetd

(/usr/sbin/in.telnetd)

/etc/issue.net

Telnet with Kerberos Support (krb5-telnet)

krb5-workstation

/etc/init.d/xinetd

(etc/initd.d/krb5-telnet)

/usr/sbin/xinetd

(/usr/kerberos/sbin/telnetd)

/etc/krb5.conf

Open Secure Shell (Openssh)

openssh-server

/etc/initd/sshd

/usr/sbin/sshd

/etc/ssh/*

Remote Login (Rlogin)

rsh-server

/etc/init.d/xinetd

(etc/xinetd.d/rlogin)

/usr/sbin/xinetd

(/usr/sbin/in. rlogind )

/etc/ hosts .equiv $HOME/.rhosts

Remote Login with kerberos Support (Eklogin)

krb5-workstation

/etc/init.d/xinetd

(etc/xinetd.d.eklogin)

/usr/sbin/xinetd

(/usr/kerberos/sbin/klogind)

/etc/krb5.conf

$HOME/.k5login

$HOME/.klogin

(Klogin)

krb5-workstation

/etc/init.d/xinetd

/usr/sbin/xinetd

(/usr/kerberos/sbin/klogind)

/etc/krb5.conf

$HOME/.k5login

$HOME/.klogin

E-mail Servers

Remote Mail Access Servers (IMAP)

dovecot

/etc/init.d/dovecot

/usr/sbin/dovecot

/etc/dovecot

(POP3)

dovecot

/etc/init.d/dovecot

/usr/sbin/dovecot

/etc/dovecot

E-mail Transfer Severs (Sendmail)

sendmail

sendmail-cf

sendmail-doc

/etc/init.d/sendmail

/usr/sbin/sendmail

/etc/sendmail.cf

/etc/mail/*

(Postfix)

postfix

/etc/init.d/postfix

/usr/sbin/postfix

/etc/postfix/*

News Server

Internet Network News (INN)

inn

/etc/init.d/innd

/usr/bin/innd

/etc/news/*

Print Server

Common UNIX Printing System (CUPS)

cups

cups-drivers

cups-libs

cups-drivers-hpijs

/etc/init.d/cups

/usr/sbin/cupsd

/etc/cups/*

Network Administration Servers

Network Time Protocol Server (NTP)

ntp

/etc/init.d/ntpd

/usr/sbin/ntpd

/etc/ntp.conf

/etc/ntp/keys

Network Portmap (RPC to DARPA)

portmap

/etc/init.d/portmap

/sbin/portmap

/etc/rpc

Samba Administration (SWAT)

samba-swat

/etc/init.d/xinetd

(/etc/xinetd.d/swat)

/usr/sbin/xinetd

(/usr/sbin/swat)

/etc/smb.conf

Network Management (arpwatch)

arpwatch

/etc/init.d/arpwatch

/usr/sbin/arpwatch

/etc/sysconfig/arpwatch

Simple Network Management Protocol (SNMP)

net-snmp

/etc/init.d/snmpd

/etc/init.d/snmptrapd

/usr/sbin/snmpd

/etc/snmp/snmpd.conf

Information Servers

Network Information Server (Ypbind)

ypbind

/etc/init.d/ypbind

/sbin/ypbind

/etc/yp.conf

(Yppasswdd)

ypserv

/etc/init.d/yppasswdd

/usr/sbin/rpc.yppasswd

/etc/passwd

/etc/shadow

(Ypserv)

ypserv

/etc/init.d/ypserv

/usr/sbin/ypserv

/etc/ypserv.conf

Dynamic Host Configuration Protocol Server (DHCP)

dhcp

/etc/init.d/dhcpd

/usr/sbin/dhcpd

/etc/dhcpd.conf

Lightweight Directory Access Protocol (LDAP)

openldap-servers

/etc/init.d/ldap

/usr/sbin/slapd

/usr/sbin/slurpd

/etc/openldap/slapd.conf

Domain Name System Server (DNS)

bind

bind-utils

bind-chroot

/etc/init.d/named

/usr/sbin/named

/etc/named.conf

/var/named/*

Reverse Address Resolution Protocol Server (RARP)

rarpd

/etc/init.d/rarpd

/usr/sbin/rarpd

/etc/ethers

Database Services

MySQL Database

mysql

mysql-server

/etc/init.d/mysqld

/usr/libexec/mysqld

/etc/my.cnf

Postgresql

postgresql-libs

postgresql

postgresql-server

/etc/init.d/postgresql

/usr/bin/ postmaster

/var/lib/pgsql/data

User Services

Remote Execution Servers (Rsh)

rsh-server

/etc/init.d/xinetd

(/etc/xinetd.d/rsh)

/usr/sbin/xinetd

(/usr/sbin/in.rshd)

/etc/hosts.equiv

$HOME/.rhosts

(Rexec)

rsh-server

/etc/init.d/xinetd

(/etc/xinetd.d/rexec)

/usr/sbin/xinetd

(/usr/sbin/in.rexecd)

/etc/passwd

(Kshell)

krb5-workstation

/etc/init.d/xinetd

(/etc/xinetd.d/Kshell)

/usr/sbin/xinetd

(/usr/kerberos/sbin/kshd)

/etc/krb5.conf

Talk Server (ntalk)

talk-Server

/etc/init.d/xinetd

(/etc/xinetd.d/ntalk)

/usr/sbin/xinetd

(/usr/sbin/in.ntalkd)

 

(talk)

talk-server

/etc/init.d/xinetd

(/etc/xinetd.d/talk)

/usr/sbin/xinetd

(/usr/sbin/in.talkd)

 

Finger Server (Finger)

finger-server

/etc/init.d/xinetd

(/etc/xinetd.d/finger)

/usr/sbin/xinetd

(/usr/sbin/in.fingerd)

 

Identify Users ( Rusers )

rusers-server

/etc/init.d/rusersd

/usr/sbin/rpc.rusersd

 

Write All Users (Rwall)

rwall-server

/etc/init.d/rwalld

/usr/sbin/rpc.rwalld

 

Security Services

       

System Logging (syslog)

sysklogd

/etc/init.d/syslog

/sbin/syslogd

/etc/syslog.conf

Caching Server (Squid)

squid

/etc/init.d/squid

/usr/sbin/squid

/etc/squid/squid.conf

To begin determining where a service failure actually occurs, look to the log files contained in the /var/log directory. The messages and dmesg files contain general messages about processing that occurs when services and hardware are initialized . Many services, such as Sendmail and Apache, have their own log files. Setting debug levels on service daemons is a way to get more details about how a server is working (see the Debugging Services sidebar).

The rest of this appendix provides an overview of the daemon processes, start-up scripts, configuration files, and software packages that are associated with the networking services that come with Fedora and RHEL.




Fedora 6 and Red Hat Enterprise Linux Bible
Fedora 6 and Red Hat Enterprise Linux Bible
ISBN: 047008278X
EAN: 2147483647
Year: 2007
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net