1 / 11

Windows Interoperability

Windows Interoperability. What can Samba do?. Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: File sharing Printer sharing Distributed Filesystem sharing Client Authentication Provide/Assist with Windows Internet Name Service (WINS). How does Samba do it?.

hertz
Download Presentation

Windows Interoperability

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

  2. What can Samba do? • Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: • File sharing • Printer sharing • Distributed Filesystem sharing • Client Authentication • Provide/Assist with Windows Internet Name Service (WINS)

  3. How does Samba do it? • SMB = Server Message Block • SMB is an extension added by MS to allow DOS to redirect calls to NetBIOS • NetBIOS = (crude) interface between network and application • CIFS = Common Internet File System • Different paradigm than NFS • Based on protocols from SMB • SMBFS • Allows Linux to treat CIFS just as another foreign FS

  4. Why care about Windoze? • It’s everywhere (dun dun DUN!) • Chances are, more of your clients will be using it than *NIX • It has brought computing to the average Joe – billions of ‘em • It uses inferior multi-user technology, and we should help them where possible • It’s not leaving anytime soon – get over it

  5. “Everybody dance now.” • Samba runs as a service; usually needs little attention • Can check using smbstatus • Only config file: /etc/samba/smb.conf • Two daemons • smbd – file and print services, authentication • nmbd – NetBIOS name service, browsing

  6. What will Samba do here? • Can do • File sharing • Printer sharing • Distributed Filesystem sharing • Client Authentication • Provide/Assist with Windows Internet Name Service (WINS) • Backup PCs (smbtar) • Will do only setup of file sharing today

  7. File Sharing Setup • Install Samba • V2 series: 2.2.8a latest • V3 series: 3.0.2a latest • Modify /etc/samba/smb.conf • Add users and set passwords • Add user using useradd • Set user password using passwd • Set Samba password using smbpasswd • Restart Samba • /etc/rc.d/init.d/smb restart

  8. /etc/samba/smb.conf • Standard, simple scheme [share] attribute = value # or ; denotes a comment • Sample Headings: • global – global settings, network IDs • homes – users home directories • printers – printing utilities • Music – mp3 and other audio files • everyone – open RW share to all

  9. Shares and Attributes • global • workgroup = name of Windows network group • netbios name = name to appear in Windows Network Neighborhood • hosts allow = list of IPs (whitespace-delineated) to have access to SMB shares • encrypt passwords = yes, for Win98+; no for Win95- • homes • browseable = yes, will map directly to /home/user; much like “My Documents” ability on campus • writable = yes (same as read only = no); by default, all shares are read-only

  10. Common Shares and Attributes • Music • path = path to music files • public = yes, will allow RX access to all users • write list = list of users that can write • invalid users = list of users that cannot access • Note: users are names from Windows logon, and are case-insensitive. • everyone • path = path to RW storage space • Often also set read only = no and browseable = yes • Note: gives full RW access to anyone – be careful • printers • printable = yes • path = /var/spool/samba

  11. Accessing Samba/Win Shares • From Windows • Using Network Neighborhood • Act and look like normal shares • From Linux/UNIX • Using a file manager (like Konqueror) • Often very slow, requires re-entering of passwords • Using network app like Komba2 or LinNeighborhood • Mount them • in /etc/fstab • //SMB_server/share local_mount_dirsmbfsoptions0 0 • mount –t smbfs –o username=name //SMB_server/share mount_dir

More Related