1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Linux Professional Institute Certification — 102 Andrew Eager Context Objectives Resources NFS Samba smb.conf License Of This Document Andrew Eager andrew.eager@aes-pl.com.au Geoffrey Robertson ge@ffrey.com Nick Urbanik nicku@nicku.org This document Licensed under GPL—see section 7 2005 July Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document NFS Samba smb.conf License Of This Document Topic 113 Networking Services [24] Where we are up to 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives 1.113.1 Configure and manage inetd, xinetd, and related services [4] 1.113.2 Operate and perform basic configuration of sendmail [4] 1.113.3 Operate and perform basic configuration of Apache [4] 1.113.4 Properly manage the NFS, smb, and nmb daemons [4] 1.113.5 Setup and configure basic DNS services [4] 1.113.7 Set up secure shell (OpenSSH) [4] Resources NFS Samba smb.conf License Of This Document Description of Objective 1.113.4 Properly manage the NFS, smb, and nmb daemons 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context 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). Objectives Resources NFS Samba smb.conf License Of This Document Key files, terms, and utilities include: 1.113.4 Properly manage the NFS, smb, and nmb daemons 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba /etc/exports /etc/fstab /etc/smb.conf mount umount smb.conf License Of This Document Properly manage the NFS, smb, and nmb daemons Resources 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba NFS: http://nfs.sourceforge.net/ Samba: http://au1.samba.org/samba/docs/ Especially important are the two online books: http://au1.samba.org/samba/docs/man/ Samba3-HOWTO/, and http://au1.samba.org/samba/docs/man/ Samba3-ByExample/ smb.conf License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document About NFS NFS on client NFS: server configuration Samba smb.conf License Of This Document NFS About 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives “Network File System” Extremely widely used protocol for sharing files between Unix machines Built over RPC Almost always uses UDP Unlike alternatives, the NFS protocol is stateless—the server can reboot and the client carries on NFSv2 is very simple; v3 is an evolution of v2; v4 is complex (and stateful) Resources NFS About NFS NFS on client NFS: server configuration Samba smb.conf License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document About NFS NFS on client NFS: server configuration Samba smb.conf License Of This Document NFS Client-side usage 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources mount -o options server:/path /mnt_point NFS About NFS NFS on client # typical /etc/fstab line - see nfs(5) Samba server:/exports/home /home nfs rw,intr,rsize=8192,wsize=8192 smb.conf NFS: server configuration Some options: rsize/wsize Read/write size intr Allow signals to interrupt timed-out operations soft Don’t retry indefinitely License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document About NFS NFS on client NFS: server configuration Samba smb.conf License Of This Document NFS Server-side configuration 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives /etc/exports controls what gets exported to where # /etc/exports. See exports(5) /home 10.0.128.0/24(rw,no_root_squash) /cdrom *(ro,all_squash) Information is actually communicated to mountd and kernel NFS server via exportfs(8) Note: No whitespace is allowed between client and client options (showmount(8) will query this information from a server) Resources NFS About NFS NFS on client NFS: server configuration Samba smb.conf License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Samba About Samba smb.conf License Of This Document Samba About 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources Implementation of Windows networking protocols (SMB/CIFS, NMB) for Unix Samba version 3 (just released) gives PDC/BDC functionality, NT4 domain member support, much improved printing, etc Full suite of tools, including smbd and nmbd daemons, but also client tools: smbclient, rpcclient, net, smbstatus, nmblookup, smbtar, smbspool, etc NFS Samba About Samba smb.conf License Of This Document Samba smb.conf 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources Configured through /etc/samba/smb.conf win.ini-esque sections describing shares [public] comment = Public files path = /home/ftp/pub read only = yes guest ok = yes Various %X string substitutions available (see smb.conf(5)) NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Samba smb.conf – Special sections 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba [global] Global configuration [homes] Triggers creation of automatic user home directory shares [printers] Triggers creation of printer shares for each system printer smb.conf smb.conf sections Web configuration with swat License Of This Document Outline 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Samba SWAT 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS “Samba Web Administration Tool” Usual install is http://localhost:901/ Easy to use, links to relevant documentation, etc. Rewrites smb.conf, loses comments, reorders and destroys hand crafted directives such as include Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document Topics Covered Context Objectives Resources NFS About NFS NFS on client NFS: server configuration Samba About Samba smb.conf smb.conf sections Web configuration with swat License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Resources NFS Samba smb.conf smb.conf sections Web configuration with swat License Of This Document License Of This Document 1.113.4 Properly manage the NFS, smb, and nmb daemons Weight 4 Andrew Eager Context Objectives Copyright c 2005, 2003 Andrew Eager , Geoffrey Robertson and Nick Urbanik . 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. Resources NFS Samba smb.conf License Of This Document