中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Five : Samba 王俊城RHCE/RHCX.

Slides:



Advertisements
Similar presentations
SAMBA in the SOHO/SMB Environment Arun Khan 424 E. State Parkway Schaumburg, IL
Advertisements

中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap two : DNS 王俊城RHCE/RHCX.
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.
Distributed File Systems Bansari Patel. Introduction How does a distributed file system work? How does a distributed file system work? Advantages of using.
Guide to Linux Installation and Administration, 2e1 Chapter 12 Printing in Linux.
Linux+ Guide to Linux Certification, Second Edition
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Four : Mail 王俊城RHCE/RHCX.
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.
11 INFO 321 Server Technologies II. 2 What is Samba? ◊Samba is essentially a TCP/IP file and print server for Microsoft Windows clients It can support.
VPN Plus Samba Making My Home Computing Environment Identical to My Work Computing Environment.
Configuring Disk Quotas Linux System Administration To implement disk quotas, use the following steps: Enable quotas per file system by modifying /etc/fstab.
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.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
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.
Tero Koskinen & Juuso Rintala.  First we decided which OS we´re operating with › CentOS was the most familiar to us  Then which services we´d like to.
Windows Interoperability. What can Samba do? Allow for peaceful coexistence between Windows and Linux/UNIX systems regarding: File sharing Printer sharing.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
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.
Hp education services education.hp.com hp education services education.hp.com 1 HP World/Interex 2002 Linux Network Configuration Basics Chris Cooper (734)
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
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.
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.
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.
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.
Kickstart Installation
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
Linux Operations and Administration
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap one : Service Control 王俊城RHCE/RHCX.
SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration.
Samba
Setting up a Printer. ♦ Overview Linux servers can be used in many different roles on a LAN. File and print servers are the most common roles played by.
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
Using Samba Doug Maxwell November 13, 2004 – GHGLUG
Guide to Operating Systems, 5th Edition
Configuring Disk Quotas
Samba.
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
Workshop Administrasi Jaringan
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
Samba.
Samba - SMB yench.
Cooperating with Windows
Configuring Disk Quotas
Presentation transcript:

中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Five : Samba 王俊城RHCE/RHCX

Agenda  Introduction to Samba (SMB)  Configuring the SMB service

Samba services  Four main services are provided:  authentication and authorization of users  file and printer sharing  name resolution  browsing (service announcements)  Related  smbclient command-line access  mount – t smbfs Linux can mount an SMB share

Samba Daemons  smbd : SMB/CIFS server  authentication and authorization  File and printer sharing  nmbd : NetBIOS name server  resource browsing  WINS server

Service Profile: SMB  Type: System V-manager service  Packages: samba{,-common,-client}  Daemons:nmbd, smbd  Script:smb  Ports:(netbios) 137(-ns) 138(-dgm)139(-ssn)  Configs:/etc/samba/*  Log:/var/log/samba/*

Configuring Samba  Configuration in /etc/samba/smb.conf  Red Hat provides a well-commented default configuration, suitable for most situations  grep ^[^;#] /etc/samba/smb.conf  Configuration tools are available  redhat-config-samba  Hand-editing smb.conf is recommended

Overview of smb.conf Sections  smb.conf is styled after the “.ini ” file format and is split into different [ ] sections  [global] : section for server generic or global settings  [homes] : used to grant some or all users access to their home directories  [printers] : defines printer resources and services

Configuring File and Directory Sharing  Shares should have their own [ ] section  Some options to use: public - share can be accessed by guest(No) public - share can be accessed by guest(No) browseable - share is visible in browse lists(Yes) browseable - share is visible in browse lists(Yes) writable - resource is read and write enabled(No) writable - resource is read and write enabled(No) printable - resource is a printer, not a disk(No) printable - resource is a printer, not a disk(No) group - all connections to the share use the specified group as their primary group group - all connections to the share use the specified group as their primary group

Printing to the Samba Server   raw printer queue  All printers defined in /etc/cups/printers.conf are shared as resources by default  Can be changed to allow only explicitly publicized printers

Passwords  Encrypted password considerations  Stored in /etc/samba/smbpasswd  Users managed with smbpasswd  Users must have local accounts, or implement windbindd, a separate service  smbpasswd – a qoo(a:add)

Samba Client Tools: smbclient  Can be used as an ftp-style file retrieval tool  smbclient //machine/service cd directory cd directory get file get file  Allows for simple view of shared services  smbclient -L hostname  smbclient -L hostname -N  smbclient -L hostname – U qoo%password

nmblookup  list specific machine from WINS Server  nmblookup -U server -R 'name ‘ (U:Unicast)  list all machines  nmblookup \*(broadcast)

smbmount  The SMB file system is supported by the Linux kernel  Use smbmount to mount a SMB- shared resource:  smbmount service mountpoint -o options  mount – t smbfs – o username=qoo,password=password //server1/samba /mnt/samb

Samba Mounts in /etc/fstab  Samba mounts can be performed automatically upon system boot by placing an entry in /etc/fstab  Specify the UNC path to the samba server, local mount point, smbfs as the file system type, and a user name.  //server1/samba /mnt/samba smbfs defaults,username=qoo%password 0 0  chkconfig netfs on