230 likes | 458 Views
Chapter 23 Samba: Integrating Linux and Windows. Which Version of Samba? Introduction Prerequisites Samba Users, User Maps, and Passwords JumpStart: system-config-samba: Configuring a Samba Server swat: Configuring a Samba Server Manually Configuring a Samba Server
E N D
Chapter 23 Samba: Integrating Linux and Windows • Which Version of Samba? • Introduction • Prerequisites • Samba Users, User Maps, and Passwords • JumpStart: system-config-samba: • Configuring a Samba Server • swat: Configuring a Samba Server • Manually Configuring a Samba Server • Parameters in the smbd.conf File • The [homes] Share: • Accessing Linux Shares from Windows • Browsing Shares • Mapping a Share • Accessing Windows Shares from Linux • smbtree: Displaying Windows Shares • smbclient: Connecting to Windows Shares • Browsing Windows Networks • smbmount: Mounting Windows Shares • Troubleshooting
Introduction • Which version of Samba? • Version 2 – used with RH Enterprise Linux • Version 3 – used with Fedora Core 2 • Designed for use with Windows NT • Also supports Active Directory Windows 2000
Prerequisites • samba • samba-client • samba-common • system-config-samba • samba-swat (optional) /sbin/chkconfig smb on /sbin/service smb start
Samba Utilities and Daemons • net • nmbd • nbmlookup • smbclient • smbd • smbpasswd • smbstatus • smbtree • swat • testparms • testprns
Samba users, maps, passwords • Samba server requires Windows username and Samba password • Usernames - /etc/samba/smbusers • Passwords - /etc/samba/smbpasswd • Example: Entry in smbusers file: sls = sam [Linux name = Windows name] Set password: #smbpasswd –a sls
JumpStart I: • system-config-samba: use to configure samba server on linux computer • Samba users • Linux shares
swat Config Parameters • HOME • GLOBALS • SHARES • PRINTERS • WIZARD • STATUS • VIEW • PASSWORD • Help and defaults
Parameters in smb.conf • globals • printers • homes • share name
Parameters in smbd.conf • Global Parameters • interfaces • printing • server string • workgroup • Security • encrypt passwords • guest account • hosts allow / hosts deny • map to guest • Logging • Browser
Troubleshooting • Restart the smbd: • Use testparm • Use ping • Use net view in Windows • Use net use to map a drive • Use nmblookup • Use smbclient to connect