Samba Let’s Dance!. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.

Slides:



Advertisements
Similar presentations
Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  FTP (File Transfer Protocol)  NFS (UNIX-based) mountd is responsible for mount request.
Advertisements

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.
Internet Applications: Telnet, Ping and Traceroute.
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.
Network Shares and Accounts Sharing Printers, Drives, Folders – Setup Windows 95/98 Windows NT (2000, XP) Linux – Users – Groups.
Microsoft File Sharing SMB Protocol. In the beginning … (b4 dos) Application BIOS diskvideo BIOS ( basic input output system ) Provided procedures with.
Linux Networking CIS Why Linux/Unix? Configurability ▫Customizable System to satisfy unique needs. Scalability ▫Able to serve an increasing number.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
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.
Samba
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.
Workshop 1: Introduction to TCP/IP
Module 7: Configuring TCP/IP Addressing and Name Resolution.
Windows Interoperability Chris “CJ” Janneck CSE 398 – Sys Admin 4/19/2004.
1 Chapter Linux/Windows Internetworking. 2 Chapter Objectives Samba Practical Customization of Samba on a Linux Server Setting Up SWAT to Remotely Configure.
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.
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.
Network Services CSCI N321 – System and Network Administration Copyright © 2000, 2007 by Scott Orr and the Trustees of Indiana University.
Network Operating Systems versus Operating Systems Computer Networks.
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,
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.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
Samba Server Configuration
SAMBA Server Message Block File & Print Server. Service Profile Type: System-V managed service Packages: samba-common, samba-client Daemons: nmbd, smbd.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
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.
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.
TITLE: SMB Mazhafizie abdul halim (wet080008) Muhammad badrul hisyam (wet080009) Ahmad asyraf bin mustafa (wet080001)
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Linux Operations and Administration
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration.
COMP1321 Digital Infrastructure Richard Henson March 2016.
Samba
Some Network Commands n Some useful network commands –ping –finger –nslookup –tracert –ipconfig.
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.
Unit –III CHAP-I 1 Created By Asst. Prof. Ashish Shah, J.M.Patel College of Commerce.
LINUX - SAMBA
Microsoft OS Vulnerabilities April 1, 2010 MIS 4600 – MBA © Abdou Illia.
Using Samba Doug Maxwell November 13, 2004 – GHGLUG
Guide to Operating Systems, 5th Edition
Samba.
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
Network Operating Systems Examples
Samba weicc.
Workshop Administrasi Jaringan
Chapter 3: Windows7 Part 4.
Samba.
Samba - SMB yench.
Samba.
David Boyce David Darby
Presentation transcript:

Samba Let’s Dance!

Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod Based on RPC  CIFS (Microsoft) Common Internet File System 網路芳鄰 SMB (Server Message Block) Share access to files, printers, … Based on NetBIOS

Computer Center, CS, NCTU 3 Service of SMB and NetBIOS  NetBIOS Name Service for name registration and resolution Session service for connection-oriented communication Datagram distribution service for connectionless communication  SMB File and printer sharing service Authentication

Computer Center, CS, NCTU 4 NetBIOS – Network Basic Input/Output System  NetBIOS (API) 1983 – developed as an API for software communication over IBM’s PC- Network LAN 1985 – Microsoft created a NetBIOS implementation for its MS-Net network topology Difference between local filesystem and network filesystem when accessing Used to share or access network-based filesystem just as BIOS does in local filesystem  NetBEUI – NetBIOS Extended User Interface Transfer NetBIOS commands across network Each host can claim a name not used in network  NetBIOS Name Server or not  NetBIOS over TCP/IP

Computer Center, CS, NCTU 5 NetBIOS Naming Service  Peer to peer (Workgroup model)

Computer Center, CS, NCTU 6 NetBIOS Naming Service  Domain model WINS

Computer Center, CS, NCTU 7 SMB – Server Message Block  SMB Original designed by IBM with the aim of turning DOS interrupt local file access into a network filesystem  Run on top of netbios 1990 – Microsoft merged the SMB protocol with LAN Manager 1992 – Microsoft merged and add features to SMB protocol in Windows for Workgroup 1996 – Microsoft renames SMB as CIFS  Support for symbolic link, hard link, larger file sizes, … 2006 – Microsoft introduced SMB2 with Windows vista Windows 7 – SMB 2.1  Performance enhancement with a new opportunistic locking

Computer Center, CS, NCTU 8 UNIX-Windows communication  SAMBA 1991 – Andrew Tridgwell developed the first version of Samba  Using a packet sniffer on DEC Pathworks server software A UNIX application that speak SMB protocol Can not use the Original Name: Server Message Block (SMB)  Samba  Why samba ?

Computer Center, CS, NCTU 9 What SAMBA can do?  Sharing Sharing files or printers just like Microsoft does Authenticate user identity just like Microsoft does Resolve NetBIOS name just like Microsoft does

Computer Center, CS, NCTU 10 Install SAMBA  Using ports % cd /usr/ports/net/samba34  Samba3.5.6 – support for SMB2 % portmaster –BD net/samba34

Computer Center, CS, NCTU 11 SAMBA components  Configuration files /usr/local/etc/smb.conf.default  /usr/local/etc/smb.conf /usr/local/etc/lmhosts  Major execution files smbd (/usr/local/sbin/smbd)  Management of sharing directories, files and printers nmbd (/usr/local/sbin/nmbd)  Resolve NetBIOS name and manage workgroup smbpasswd (/usr/local/bin/smbpasswd)  Change a user ’ s SMB password

Computer Center, CS, NCTU 12 SAMBA configuration file  smb.conf Sections  Three default sections  Global Setting  Printer Sharing Setting  Home Sharing Setting # comments [global] para1 = value1 … [printers] para2 = value2 … [homes] para3 = value3 … [share-dir] para4 = value4 …

Computer Center, CS, NCTU 13 SAMBA configuration file – Global Setting (1)  Global Configuration workgroup  Group name to join  Ex: workgroup = chwong server string  Description of this host  Ex: server string = Samba Server of SA Course netbios name  NetBIOS name of this host  Ex: netbios name = sabsd Charset Settings  “ display charset ”, “ unix charset ”, “ dos charset ”  Ex: display charset = UTF8 unix charset = UTF8 dos charset = UTF8 hosts allow  Apply to all services, regardless or individual service setting;  Ex: hosts allow = ,

Computer Center, CS, NCTU 14 SAMBA configuration file – Global Setting (2) guest ok (or public = yes)  If this is yes, no password is required  Ex: guest ok = no guest account  If guest can use this samba service, any guest request will map to this guest account  Ex: guest account = ftp –Add this account into your /etc/passwd  Otherwise, the user nobody is used log file  Full path of log file  Ex: log file = /var/log/samba/log.%m max log size (KB)  Ex: max log size = 500

Computer Center, CS, NCTU 15 SAMBA configuration file – Global Setting (3) security = [share/user/server/domain]  share: no need of id and password to login  user: default option, login with id and password  server: check id and password by another server  domain: check id and password by domain controller  Ex: –security = user –passdb backend = tdbsam

Computer Center, CS, NCTU 16 SAMBA configuration file – Global Setting (4)  Example of global setting [global] workgroup = chwong server string = sabsd samba server netbios name = sabsd display charset= UTF8 unix charset= UTF8 dos charset= UTF8 printcap name = /etc/printcap load printers = yes printing = cups log file = /var/log/samba/log.%m max log size = 500 security = user passdb backend= tdbsam

Computer Center, CS, NCTU 17 Samba parameters  Default parameters in samba %m  Client NetBIOS name %M  Client Hostname %I  Client IP %L  Samba server NetBIOS name %h  Samba server Hostname %H  User home directory %U  Login name %T  Current Date time

Computer Center, CS, NCTU 18 SAMBA configuration file – Home Sharing Setting (1)  Home sharing setting comment  Description of this directory path  Sharing directory path browseable  Display sharing name or not read only, writeable write list  Only users on this can write content if read only create mode / create mask  Default permission when file is created directory mode / directory mask  Default permission when directory is created guest ok (or public = yes)

Computer Center, CS, NCTU 19 SAMBA configuration file – Home Sharing Setting (2)  Example of home sharing [Image] comment= Book Picture path = /home/image read only = no public = yes writable = yes create mode = 0664 directory mode = 0775

Computer Center, CS, NCTU 20 Starting SAMBA  Script /usr/local/etc/rc.d/samba.sh {start|stop} /etc/rc.conf  samba_enable=“YES” –smbd_enable=“YES” –nmbd_enable=“YES”

Computer Center, CS, NCTU 21 SAMBA password  smb password file Now samba stores accounts and passwords in tdb  Default database path: /var/db/samba  smbpasswd command -a  Add new user -d  Let some account in smbpasswd file can not login (to disable) -e  Let some disable account resume (to enable)

Computer Center, CS, NCTU 22 smbstatus  Report on current Samba connections hscc[~] -chiahung- smbstatus Samba version PID Username Group Machine hscc hscc hscc-d30aedc531 ( ) Pegasus hscc simba-pc ( ) zn hscc bdeca39d90d4 ( ) Service pid machine Connected at zn bdeca39d90d4 Mon Oct 18 17:12: hscc hscc-d30aedc531 Mon Oct 18 17:12: Pegasus simba-pc Mon Oct 18 17:58: Locked files: Pid Uid DenyMode Access R/W Oplock SharePath Name Time DENY_NONE 0x RDONLY NONE /home/hscc UG/Films/[USA DENY_NONE 0x RDONLY NONE /home/hscc UG/Animation

Computer Center, CS, NCTU 23 Tool: smbclient (1)  A client program that can talk to an SMB server  Usage: -L [hostname]  List sharable resource -U [username]  Login with username

Computer Center, CS, NCTU 24 Tool: smbclient (2) hsccws5[~] -chiahung- smbclient -L hscc -U chiahung Enter chiahung's password: Domain=[HSCCLAB] OS=[Unix] Server=[Samba ] Sharename Type Comment IPC$ IPC IPC Service (HSCC SAMBA) chiahung Disk Home Directories Domain=[HSCCLAB] OS=[Unix] Server=[Samba ] Server Comment HSCC HSCC SAMBA Workgroup Master EC219 EC219 HSCCLAB HSCC LAB635 JJSU-LABPC LAB636 2AMW1GP6PMLTL77

Computer Center, CS, NCTU 25 SWAT (1)  Edit /etc/inetd.conf Unmark  Restart inetd  Browse swat stream tcp nowait/400 root /usr/local/sbin/swat swat

Computer Center, CS, NCTU 26 SWAT (2)  Root access