SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration.

Slides:



Advertisements
Similar presentations
Module 6: Configuring Windows XP Professional to Operate in a Microsoft Network.
Advertisements

ITN N Mrs. Z. D. Bodwin1 Guide To TCP/IP Chapter 12 TCP/IP, NETBIOS, And WINS.
Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Samba Integrating SMB file systems with UNIX. Samba Provides a file server compatible with Windows 9x and NT.. SMB Can function in NETBIOS name browsing.
Understanding Networks I. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Network Shares and Accounts Sharing Printers, Drives, Folders – Setup Windows 95/98 Windows NT (2000, XP) Linux – Users – Groups.
Hussain Ali Department of Computer Engineering KFUPM, Dhahran, Saudi Arabia Microsoft Networking.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
CIT 470: Advanced Network and System Administration
FINAL PROJECT SAMBA Server
CMSC 691X – Summer 2002 Project By Pravin D’Souza.
Installing Samba Vicki Insixiengmay Jonathan Krieger.
1 COP 4343 Unix System Administration Unit 16: file server – samba.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Advanced Samba Administration Part.
NFS Server Setup NFS SERVER SETUP. Network File Service NFS Server Setup Allows to share Directories between UNIX Systems Daemons: netfs, nfs, nfslock.
VPN Plus Samba Making My Home Computing Environment Identical to My Work Computing Environment.
Chapter 5 File and Printer Services
Samba Objectives Contents Practical Summary
Samba
NAT, Samba. Network Address Translation (NAT) Enables reuse of IP addresses, gets around IP’s limited 32-bit address space TCP-level semantic knowledge.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Module 7: Configuring TCP/IP Addressing and Name Resolution.
Chapter 4 Windows NT/2000 Overview. NT Concepts  Domains –A group of one or more NT machines that share an authentication database (SAM) –Single sign-on.
Windows Interoperability Chris “CJ” Janneck CSE 398 – Sys Admin 4/19/2004.
Windows This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr. Stephen.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Services and Disk Management. Default Services (some) Alerter ClipBook Server Computer Browser DNS Client Event Log Messenger Net Logon Network DDE Network.
VsFTP in Linux. Introduction to FTP The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the.
Ferry Astika Saputra Workshop Administrasi Jaringan SAMBA PROTOCOL.
NetBIOS name resolution. Name resolution  NetBIOS name resolution: mapping NetBIOS name to an IP address review of name syntax: machine name: \\mname.
SAMBA Integrating Linux and Window. What is Samba? Free suite of programs that enables flavors of UNIX to work with other operating systems such as OS/2.
Windows Interoperability. What can Samba do? Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: File sharing Printer sharing.
Samba Erik Turner CSIS 4490 Linux Admin & Security Dr. Hoganson.
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 23 Shared Folders 1.
Samba version What is the Samba? Samba is a suite of programs which work together to allow clients to access to a server's filespace and printers.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Active Directory Administration Lesson 5. Skills Matrix Technology SkillObjective DomainObjective # Creating Users, Computers, and Groups Automate creation.
Chapter 17 Windows Internet Name Service WINS. WINS A NetBios name server that resolves NetBIOS name to IP addresses Is much like DNS, with clients registering.
Samba Server Configuration
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Five : Samba 王俊城RHCE/RHCX.
SAMBA Server Message Block File & Print Server. Service Profile Type: System-V managed service Packages: samba-common, samba-client Daemons: nmbd, smbd.
1 Administering Shared Folders Understanding Shared Folders Planning Shared Folders Sharing Folders Combining Shared Folder Permissions and NTFS Permissions.
“Windows Networking” ITL. © Hans Kruse & Shawn Ostermann, Ohio University 2 Overview Networking under Windows Mixture of applications and protocols.
Sys Admin Course NFS and SAMBA Fourie Joubert. Sys Admin Course NFS NFS is the Network File System It allows Linux systems to share a file system, or.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
NT SECURITY Introduction Security features of an operating system revolve around the principles of “Availability,” “Integrity,” and Confidentiality. For.
SAMBA Server Message Block File & Print Server. Service Profile Type: System-V managed service Packages: samba-common, samba-client Daemons: nmbd, smbd.
1 Linux Networking and Security Chapter 5. 2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file.
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
1 Objectives Discuss File Services in Windows Server 2008 Install the Distributed File System in Windows Server 2008 Discuss and create shared file resources.
Samba
Essential Services Lesson 5. Objectives Naming Resolution In today’s networks, you assign logical addresses, such as with IP addressing. Unfortunately,
Samba Server Samba is used for *share a linux FS with windows-95,98 &NT. *Share printers connected to either linux or Windows systems. *Samba is based.
LINUX - SAMBA
Using Samba Doug Maxwell November 13, 2004 – GHGLUG
Guide to Operating Systems, 5th Edition
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
Network Operating Systems Examples
Active Directory Administration
Workshop Administrasi Jaringan
Samba.
CIT 470: Advanced Network and System Administration
Samba - SMB yench.
Presentation transcript:

SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration

Topics CT320: Advanced Network and System Administration Slide #2 1. Why Samba? 2. Workgroups 3. NetBIOS 4. Daemons 5. samba.conf 6. Security 7. Users 8. Passwords 9. Permissions

What is Samba? CT320: Advanced Network and System Administration Slide #3 Open source UNIX implementation of SMB. SMB – Server Message Block Protocol for sharing files, printers, serial ports, Communications such as named pipes Samba servers provide: File sharing. Printer sharing. Network browsing. WINS name resolution. Primary and backup domain controllers.

Why Samba? CT320: Advanced Network and System Administration Slide #4 1. Free 2. Faster than Windows SMB servers 3. More reliable than Windows servers 4. Handles heterogenous networks

Workgroups CT320: Advanced Network and System Administration Slide #5

NetBIOS CT320: Advanced Network and System Administration Slide #6 Designed to run over older network types  Token ring  NetBEUI  IPX NetBIOS over TCP/IP (NBT or NetBT)  Name service  Datagram communication  Session-based communication

Name Registration CT320: Advanced Network and System Administration Slide #7 Machines requests names and either: 1. NetBIOS name server (NBNS) handles req. 2. Client with name defends ownership.

Name Resolution CT320: Advanced Network and System Administration Slide #8 Machines asks which host has name X: NetBIOS name server (NBNS) handles req. Client with name responds with its address.

Node Types CT320: Advanced Network and System Administration Slide #9 b-node: Uses broadcast naming only. p-node: Uses NBNS naming only. m-node: Broadcast registration, then notifies NBNS of name. Broadcast resolution, fails over to NBNS. h-node: Uses NBNS, then fails over to broadcast. Default for most Windows.

NetBIOS Namespace CT320: Advanced Network and System Administration Slide #10 15-character flat namespace. Legal: A-Za-z0-9 # $ % ^ & ( ) – ‘ {} ~ Names have an associated resource type. 00: Standard workstation service. 03: Windows messenger service. 1B: Domain master browser service. 1D: Master browser. 20: File and print server.

NetBIOS Browsing CT320: Advanced Network and System Administration Slide #11 Finding computers and resources on net.  Contain master for computers.  Contain individual host for resources. Local master browser maintains list of hosts.  If local master down, election determines which machine becomes new local master browser.

Daemons CT320: Advanced Network and System Administration Slide #12 nmbd Name resolution and registration; browsing. Supports NetBIOS name server and WINS. smbd File and print sharing; authentication. winbindd NT and ADS domain service. Not needed if not using domains.

/etc/samba/smb.conf CT320: Advanced Network and System Administration Slide #13 Ini format configuration file. [section] section descriptors. [global] section values apply to all sections. Other sections describe shared resources. var = value format Many, many options. # and ; are comments Validate with testparm command.

Example /etc/samba/smb.conf CT320: Advanced Network and System Administration Slide #14 [global] workgroup = DOCS netbios name = DOCS_SRV security = share [data] comment = Documentation Server path = /export read only = Yes guest only = Yes

Samba Firewalling CT320: Advanced Network and System Administration Slide #15 Port 137: NetBIOS network browsing. Port 138: NetBIOS name service. Port 139: File/print sharing. Port 445: Used by W2k/XP when NetBIOS over TCP/IP disabled.

Authentication Types CT320: Advanced Network and System Administration Slide #16 Share Shares have one or more passwords. Anyone with password can access share. User Each share configured to allow certain users. Samba server verifies user/password pairs. Server Same as user-level, but uses another server. Domain Domain controller provides authentication types.

Username mapping CT320: Advanced Network and System Administration Slide #17 Samba server username checks 1. Check for exact username. 2. Checks for username in lowercase. 3. Checks for Username in lc, first letter uc. Username map file File specified in smb.conf. username map = /etc/samba/usermap Contains UNIX / Samba username pairs: darwin = DouglasArwin jwalden = James Walden users nobody = *

Access Control CT320: Advanced Network and System Administration Slide #18 valid users Only these users have access. Group names preceded sign. invalid users These users do not have access. Takes precedence over valid users tag. admin users These users have root access to share.

Samba Passwords CT320: Advanced Network and System Administration Slide #19 Stored in /etc/samba/smbpasswd Set by smbpaswd command.

Account Backends CT320: Advanced Network and System Administration Slide #20 Plaintext Passes plaintext auth to /etc/{passwd,shadow} Smbpasswd Text file with encrypted NT passwords. tdbsam Binary database with smbpassword + SAM info. ldapsam LDAP with POSIX + sambaSamAccount objs.

Password Synchronization CT320: Advanced Network and System Administration Slide #21 Configuration options: unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*

Sharing Home Directories CT320: Advanced Network and System Administration Slide #22 Use special [homes] share. If user attempts to connect to share not specified in /etc/smb.conf : 1. Creates new disk share called [username] 2. Share path is set to username’s home dir. 3. Options to set to [globals] + [homes] options, with [homes] options winning any conflicts. 4. Samba connects user to new share. Caveat: may not want root, bin, &c to share.

Permission Mapping CT320: Advanced Network and System Administration Slide #23 MS DOS Permissions  Read-only  System  Hidden  Archive UNIX Permissions  Read  Write  eXecute Preserve MS DOS file permissions on UNIX: Since MS DOS uses file extensions instead of X bits, map perms to owner, group, and world execute bits. Ex: map archive = yes, map system = yes, map hidden = yes

Creation Masks CT320: Advanced Network and System Administration Slide #24 Samba masks UNIX octal permissions: file and directory. Execute bits used for permission mapping. Can set user and group ownerships too. Example [data] create mask = 755 directory mask = 755 force user = joe force group = accounting

ACLs CT320: Advanced Network and System Administration Slide #25 Samba can map NT ACLs to POSIX ACLs.  nt acl support = yes  If not set, maps NT ACLs to UNIX rwx perms. POSIX ACLs do not support all NT ACLs  Ex: Take Ownership

Additional Features CT320: Advanced Network and System Administration Slide #26 1. Samba domain controllers. 2. Samba/LDAP integration. 3. Using Samba from Windows. 4. Samba Print servers.

References CT320: Advanced Network and System Administration Slide #27 1. Aeleen Frisch, Essential System Administration, 3 rd edition, O’Reilly, Evi Nemeth et al, UNIX System Administration Handbook, 3 rd edition, Prentice Hall, RedHat, Red Hat Enterprise Linux 4 System Administration Guide, Manual/sysadmin-guide/, Manual/sysadmin-guide/ 4. John H. Terpstra,, Jelmer R. Vernooij, Official Samba-3 HOWTO and Reference Guide, 2 nd Edition, Prentice Hall PTR, Collection/, John H. Terpstra,Jelmer R. Vernooij, Collection/ 5. John H. Terpstra, Samba-3 by Example: Practical Exercises to Successful Deployment, 2nd Edition, Prentice Hall PTR, Jay Ts, Robert Eckstein, David Collier-Brown, Using Samba, 2 nd edition, O’Reilly,