Zwicky, Cooper and Chapman - building Internet Firewalls, 2nd Edition.
The two most common tools for sharing files between networked hosts (Windows, Linux, UNIX, Apple and others) are NFS and Samba (CIFS/SMB).
NFS, the Network File System was originally developed by Sun MicroSystems in 1984.
The current version of NFS is v4. Version 4 is the first to be developed by the Internet Engineering Task Force (INETF) after the handover from Sun MicroSystems. NFS v4 is much influenced by the Andrew Files System (AFS). It is stateful and includes mandatory security features. (The original NFS was designed to be "stateless" and was implemented entirely in UDP).
In order to run NFS we need remote procedure calls (RPC) and the NFS kernel server (nfs-kernel-server).
In order to use NFS services we need the nfs client (nfs-common).
Files can be directly exported from the command line but more usually the exports are set up in /etc/exports The command
exportfs -a
will export all the configured files and can be run at boot time.
Issuing the command without any flags will return a list of the currently exported files together with the access controls.
Install both the NFS server and client on your host.
Create a directory /export/home and transfer your home directory to this location.
Do an NFS mount of your own directory back to /home/<username>
Try mounting your colleagues home directories to your local host.
Read the section on using the automounter (autofs), and configure the automounter using /etc/auto.master and /etc/auto.home to automount your own and your colleagues home directories.
Read the manual pages on NFS security settings, limiting host access, exporting read only, root access etc. Modify your exports to reflect your understanding of these settings.
Samba is a free open source implementation of the Server Message Block (SMB), or Common Internet File System (CIFS), that is used by Microsoft Windows hosts.
Using the Samba server Linux files and printers can be made available to Windows desktop clients. The Samba client tools also make it possible to read and write Microsoft shares.
Samba can provide authentication services for windows hosts or can be configured to use Windows authentication servers.
Set up Samba on your local host.
Examine the file /etc/samba/smb.conf and remove the # characters that preceded the homes stanza.
Use the smbclient to access your own home directory and those of colleagues on other hosts in the training lab.
Copyright
© 2003-2017
Clifford W Fulford.
Fulford Consulting Ltd.
Regd. Co. 4250037 in England & Wales.
Regd. office 162, Edward Rd. Nottingham NG2 5GF, England, UK.
Related web sites: City Linux | Flare Support | West Bridgford | Fulford Portal | Joan Mary Fulford (Nottingham Writer) | Fulford Gallery | Amharic Interpreter | Arabic Interpreter | Tigrinya Interpreter
The layout and associated style sheets for this page are taken from the World Wide Web Consortium and used here under the W3C software licence.