Setting Up Servers


Setting Up Servers

Setting up local clients and servers can make a LAN easier to use and more useful. The following list briefly describes some of these tools and references the pages that describe them in detail.

  • NIS can provide a uniform login regardless of which system you log in on. The NIS authentication server is covered on page and the client on page . NIS is often combined with home directories mounted using NFS.

  • NFS allows you to share directory hierarchies. Sharing directories using NFS requires that the server export the directory hierarchy (page ) and the clients mount the hierarchy (page ).

    Using NFS, you can store all home directories on one system and mount them from other systems as needed. This configuration works well with NIS login authentication. With this setup, it can be convenient to create a world-writable directoryfor example /home/sharedwhich users can use to exchange files. If you set the sticky bit (page ) on this directory (chmod 1777 /home/shared), users can delete only files they created. If you do not set the sticky bit, any user can delete any file.

  • OpenSSH tools include ssh (logs in on a remote system, page ) and scp (copies files to/from a remote system, page ). You can also set up automatic logins with OpenSSH: If you set up a shared home directory with NFS, each user's ~/.ssh directory (page ) is the same on each system; a user who sets up a personal authentication key (page ) will be able to use OpenSSH tools between systems without entering a password. See page for information on how to set up an OpenSSH server. You can just use the ssh and scp clients; you do not have to set them up.

  • DNS cache Setting up a local cache can reduce the traffic between the LAN and the outside world and can improve response times. For more information refer to "" on page .

  • DHCP enables a client system to retrieve network configuration information from a server each time it connects to a network. See page for more information.

  • Samba allows Linux systems to participate in a Windows network, sharing directories and printers, and accessing those shared by Windows systems. Samba includes a special share for accessing users' home directories. For more information refer to "" on page .

You can also use Samba to set up a shared directory similar to the one described under "NFS." To share a Linux directory with Windows computers, place the following code in /etc/smb.conf (page ):

[public]
   comment = Public file space
   path = /home/shared
   read only = no
   public = yes
   browseable = yes

Any Windows user can access this share; it can be used to exchange files between users and between Linux and Windows systems.