1 / 22

Samba: Integrating Linux and Windows

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

bridie
Download Presentation

Samba: Integrating Linux and Windows

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Samba: Integrating Linux and Windows Chapter 23

  2. Topics • Intro to Samba • Configuring the Samba Server • Web based config • Accessing shares from Windows • Accessing Windows shares from Linux

  3. 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

  4. 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)

  5. Setting up Samba • Prerequisites: • Install • Samba • Samba-client • Samba-common • System-config-samba (optional) • Samba-swat (optional)

  6. Samba Utils & Daemons

  7. 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

  8. 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

  9. 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

  10. 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.

  11. Putting it together • Install the packages • Use system-config-samba to setup the linux share

  12. Putting it together • Map the users to the resource or leave it open for everyone

  13. Putting it together Map the Windows users account to the Linux user account

  14. Putting it together

  15. Configuring using swat • Step 1 - Turn on swat • Open /etc/xinetd.d/swat • Change disable = yes to disable = no • Need to do this asroot

  16. Configuring using swat • Step 2 • Restart the xinetd so that it re-reads the changed file • Need to be done as root also

  17. Configuring using swat • Step 3 • Connect to localhost –port 901 • As root

  18. Configuring using swat • Step 4 • AdministerSamba viabrowser

  19. Accessing Windows Shares From Linux • Once Samba is installed connecting to a windows share can be done through the command line or browser.

  20. Summary • Intro to Samba • Configuring the Samba Server • Web based config • Accessing shares from Windows • Accessing Windows shares from Linux

  21. Questions

  22. Exercise

More Related