240 likes | 425 Views
Samba: Integrating Linux and Windows. Chapter 23. Topics. Intro to Samba Configuring the Samba Server Web based config Accessing shares from Windows Accessing Windows shares from Linux. Samba. Samba is a suite of programs that enables Linux and MAC to work with OS/2 and Windows
E N D
Samba: Integrating Linux and Windows Chapter 23
Topics • Intro to Samba • Configuring the Samba Server • Web based config • Accessing shares from Windows • Accessing Windows shares from Linux
Samba • Samba is a suite of programs that enables Linux and MAC to work with OS/2 and Windows • It allows Linux to share folder and printers to Windows as a server • As a client allows Linux to connect to Windows printers and shares
Samba • “Samba” is derived from smb (server message block) protocol • Used to ensure connectivity in a heterogeneous environment • Microsoft merged the SMB protocol with the LAN Manager product which it had started developing with 3Com circa 1990, and continued to add features to the protocol in Windows for Workgroups (circa 1992) and in later versions of Windows (Wikipedia)
Setting up Samba • Prerequisites: • Install • Samba • Samba-client • Samba-common • System-config-samba (optional) • Samba-swat (optional)
Starting Samba • To configure Samba to run at start up in multiuser mode • /sbin/chkconfig smb on • To start the smb service • /sbin/service smb start • To check smb service status • /sbin/service smb status • To use swat – restart the xinetd service • /sbin/service xinetd restart
Windows connections • For Windows users to connect to Samba services on a Linux system the use must provide Windows username and a Samba Password • It is also possible to set up Linux to authenticate to an LDAP server instead of a default password
Samba connection usernames • Usernames must be the same as a Linux username or must map to a linux username. • Samba keeps the mapped names in /etc/samba/sambausers • Usernames do not need to be mapped if the user uses an existing account name
Samba Connections • Samba uses “Samba Passwords” not linux passwords to authenticate users. • /etc/samba/smbpasswd is to location of the password file. • This file does not exist at first, you create it as part of the config.
Putting it together • Install the packages • Use system-config-samba to setup the linux share
Putting it together • Map the users to the resource or leave it open for everyone
Putting it together Map the Windows users account to the Linux user account
Configuring using swat • Step 1 - Turn on swat • Open /etc/xinetd.d/swat • Change disable = yes to disable = no • Need to do this asroot
Configuring using swat • Step 2 • Restart the xinetd so that it re-reads the changed file • Need to be done as root also
Configuring using swat • Step 3 • Connect to localhost –port 901 • As root
Configuring using swat • Step 4 • AdministerSamba viabrowser
Accessing Windows Shares From Linux • Once Samba is installed connecting to a windows share can be done through the command line or browser.
Summary • Intro to Samba • Configuring the Samba Server • Web based config • Accessing shares from Windows • Accessing Windows shares from Linux