\input{gl2.slide-header-beamer}% \errorcontextlines=99 %% Subtopic Number = '1.113.4' %% Title from filename: 'Properly manage the NFS, smb, and nmb daemons ' %% Weight: 4 %% Description: %% Candidate should know how to mount remote filesystems using %% NFS, configure NFS for exporting local filesystems, start, stop, and %% restart the NFS server. Install and configure Samba using the included %% GUI tools or direct edit of the /etc/smb.conf file (Note: this %% deliberately excludes advanced NT domain issues but includes simple %% sharing of home directories and printers, as well as correctly setting %% the nmbd as a WINS client). %% Key files, terms, and utilities include: %% /etc/exports %% /etc/fstab %% /etc/smb.conf %% mount %% umount \title{1.113.4\\Properly manage the NFS, smb, and nmb daemons \\Weight 4} \author[Andrew Eager]{Andrew Eager \texttt{andrew.eager@aes-pl.com.au} \and Geoffrey Robertson \texttt{ge@ffrey.com} \and Nick Urbanik \texttt{nicku@nicku.org}\\ {\tiny This document Licensed under GPL---see section~\ref{sec:license}}} \subtitle{Linux Professional Institute Certification --- 102}% \mode
{\chead{1.113.4}}% % TODO: Nick % Add much more about samba % include stuff from my own notes. \begin{document} \maketitle \mode
{\thispagestyle{empty}} \begin{frame} \frametitle{Outline} \mode {% %\footnotesize \begin{multicols}{2} \tableofcontents \end{multicols} % You might wish to add the option [pausesections] }% \mode
{% \tableofcontents }% \end{frame} \section{Context} \label{sec:context} \begin{frame} \frametitle{Topic 113 Networking Services [24]}% \framesubtitle{Where we are up to}% \begin{description} \item[1.113.1] Configure and manage inetd, xinetd, and related services [4] \item[1.113.2] Operate and perform basic configuration of sendmail [4] \item[1.113.3] Operate and perform basic configuration of Apache [4] % \uline depends on \usepackage[normalem]{ulem}: \item[1.113.4] \textbf{\uline{Properly manage the NFS, smb, and nmb daemons [4]}} \item[1.113.5] Setup and configure basic DNS services [4] \item[1.113.7] Set up secure shell (OpenSSH) [4] \end{description} \end{frame} \section{Objectives} \label{sec:objectives} \begin{frame} \frametitle{Description of Objective}% \framesubtitle{1.113.4\ \ Properly manage the NFS, smb, and nmb daemons}% \mode{\Large}% Candidate should know how to mount remote filesystems using NFS, configure NFS for exporting local filesystems, start, stop, and restart the NFS server. Install and configure Samba using the included GUI tools or direct edit of the /etc/smb.conf file (Note: this deliberately excludes advanced NT domain issues but includes simple sharing of home directories and printers, as well as correctly setting the nmbd as a WINS client). \end{frame} \begin{frame}[fragile] \frametitle{Key files, terms, and utilities include:}% \framesubtitle{1.113.4\ \ Properly manage the NFS, smb, and nmb daemons}% \mode{\large}% \begin{semiverbatim} /etc/exports /etc/fstab /etc/smb.conf mount umount \end{semiverbatim} \end{frame} % \begin{frame}[fragile] % \frametitle{Properly manage the NFS, smb and nmbs daemons} % \framesubtitle{Objective} % Candidate should know how to mount remote filesystems using NFS, % configure NFS for exporting local filesystems, start, stop, and % restart the NFS server. Install and configure Samba using the included % GUI tools or direct edit of the /etc/smb.conf file (Note: this % deliberately excludes advanced NT domain issues but includes simple % sharing of home directories and printers, as well as correctly setting % the nmbd as a WINS client). % \end{frame} % \begin{frame}[fragile] % \frametitle{Properly manage the NFS, smb, and nmb daemons} % \framesubtitle{Key files, terms and utilities} % \begin{semiverbatim} % /etc/exports % /etc/fstab % /etc/smb.conf % \textbf{mount} % \textbf{umount} % \end{semiverbatim} % \end{frame} \section{Resources} \label{sec:resources} \begin{frame}[fragile] \frametitle{Properly manage the NFS, smb, and nmb daemons}% \framesubtitle{Resources}% \textbf{NFS:}% \hfill \url{http://nfs.sourceforge.net/}% \par \textbf{Samba:}% \hfill \url{http://au1.samba.org/samba/docs/}% \begin{itemize} \item Especially important are the two online books: \begin{itemize} \item \url{http://au1.samba.org/samba/docs/man/Samba3-HOWTO/}, and \item \url{http://au1.samba.org/samba/docs/man/Samba3-ByExample/} \end{itemize} \end{itemize} \end{frame} \section{NFS} \label{sec:nfs} \subsection{About NFS} \label{sec:about-nfs} \begin{frame} \frametitle{NFS}% \framesubtitle{About}% \begin{itemize} \item ``Network File System'' \item Extremely widely used protocol for sharing files between Unix machines \item Built over RPC \item Almost always uses UDP \item Unlike alternatives, the NFS protocol is \textbf{stateless}---the server can reboot and the client carries on \item NFSv2 is very simple; v3 is an evolution of v2; v4 is complex (and stateful) \end{itemize} \end{frame} \subsection{NFS on client} \label{sec:mount} \begin{frame}[fragile] \frametitle{NFS}% \framesubtitle{Client-side usage}% \begin{semiverbatim} mount -o \textit{options} \textit{server}:/path /mnt_point \small # typical /etc/fstab line - see nfs(5) server:/exports/home /home nfs rw,intr,rsize=8192,wsize=8192 \end{semiverbatim} Some options: \begin{description} \item[rsize/wsize] Read/write size \item[intr] Allow signals to interrupt timed-out operations \item[soft] Don't retry indefinitely \end{description} \end{frame} \subsection{NFS: server configuration} \label{sec:nfs-server-config} \begin{frame}[fragile] \frametitle{NFS}% \framesubtitle{Server-side configuration}% \texttt{/etc/exports} controls what gets exported to where \begin{semiverbatim} # /etc/exports. See exports(5) /home 10.0.128.0/24(rw,no_root_squash) /cdrom *(ro,all_squash) \end{semiverbatim} Information is actually communicated to mountd and kernel NFS server via \textbf{exportfs}(8) \par \textbf{Note:} No whitespace is allowed between client and client options \par (\textbf{showmount}(8) will query this information from a server) \end{frame} \section{Samba} \label{sec:samba} \subsection{About Samba} \label{sec:about-samba} \begin{frame}[fragile] \frametitle{Samba}% \framesubtitle{About}% \begin{itemize} \item Implementation of Windows networking protocols (SMB/CIFS, NMB) for Unix \item Samba version 3 (just released) gives PDC/BDC functionality, NT4 domain member support, much improved printing, etc \item Full suite of tools, including smbd and nmbd daemons, but also client tools: smbclient, rpcclient, net, smbstatus, nmblookup, smbtar, smbspool, etc \end{itemize} \end{frame} \section{\texttt{smb.conf}} \label{sec:smb.conf} \begin{frame}[fragile] \frametitle{Samba}% \framesubtitle{\texttt{smb.conf}}% Configured through \texttt{/etc/samba/smb.conf} \par \texttt{win.ini}-esque sections describing shares \begin{semiverbatim} [public] comment = Public files path = /home/ftp/pub read only = yes guest ok = yes \end{semiverbatim} Various \%X string substitutions available (see smb.conf(5)) \end{frame} \subsection{smb.conf sections} \label{sec:smb.conf-sections} \begin{frame} \frametitle{Samba}% \framesubtitle{\texttt{smb.conf} -- Special sections}% \begin{description} \item[\texttt{[global]}] Global configuration \item[\texttt{[homes]}] Triggers creation of automatic user home directory shares \item[\texttt{[printers]}] Triggers creation of printer shares for each system printer \end{description} \end{frame} \subsection{Web configuration with swat} \label{sec:swat} \begin{frame} \frametitle{Samba}% \framesubtitle{SWAT}% \begin{itemize} \item ``Samba Web Administration Tool'' \item Usual install is \url{http://localhost:901/} \item Easy to use, links to relevant documentation, etc. \item Rewrites \texttt{smb.conf}, loses comments, reorders and destroys hand crafted directives such as \texttt{include} \end{itemize} \end{frame} \mode {% \begin{frame} \frametitle{Topics Covered} %\footnotesize %\begin{multicols}{2} \tableofcontents[pausesections,pausesubsections] %\end{multicols} % You might wish to add the option [pausesections] \end{frame} } \section{License Of This Document} \label{sec:license} \begin{frame} \frametitle{License Of This Document}% \raggedright% Copyright \copyright\ 2005, 2003 Andrew Eager , Geoffrey Robertson and Nick Urbanik . \par Permission is granted to make and distribute verbatim copies or modified versions of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundation---either version 2 of the License or (at your option) any later version. \end{frame} \end{document}