180 likes | 361 Views
Advanced Unix. Using Samba. What is Samba?. Samba is a file and print server for Windows-based clients using TCP/IP as the underlying transport protocol. It can support any SMB/CIFS-enabled client.
E N D
Advanced Unix Using Samba
What is Samba? • Samba is a file and print server for Windows-based clients using TCP/IP as the underlying transport protocol. • It can support any SMB/CIFS-enabled client. • “SMB: Acronym for ‘Server Message Block’. This is Microsoft's file and printer sharing protocol” • One of Samba's big strengths is that you can use it to blend your mix of Windows and Linux machines together without requiring a separate Windows NT/2000/2003 Server. • Samba is actively being developed by a global team of about 30 active programmers and was originally developed by Andrew Tridgell.
What is Samba • Samba current version: 3.0.24 • Samba Home Page: http://www.samba.org
Samba 3.0 Features • Active Directory support. Able to join ADS realm as a member server and authenticate users using LDAP/Kerberos support • Unicode support (Improved internationalization) • New authentication system. • new "net" command. • Samba now negotiates richer status32 codes • Better printing support from Windows 2000
Prerequisites • The following need to be installed: • samba • samba-client • samba-common • system-config-samba • samba-swat (optional)
Samba Utilities and Daemons • net • nmbd • nmblookup • smbclient • smbd • smbpasswd • smbstatus • smbtree • swat (not part of samba) • testparm
Samba users, maps, passwords • Usernames - /etc/samba/smbusers • Passwords - /etc/samba/smbpasswd • Demo: /etc/samba/smbusers
Quick Start • system-config-samba is used to configure samba server on linux computer • Demo: system-config-samba • Samba users • Linux shares
swat Config Parameters • HOME • GLOBALS • SHARES • PRINTERS • WIZARD • STATUS • VIEW • PASSWORD • Help and defaults
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 smbd • Use testparm • Use ping • Use net view in Windows • Use net use to map a drive • Use nmblookup • Use smbclient to connect