Samba. Samba. Samba 2.2.x. Limitations of Samba 2.2.x 1. Interoperating with Windows. Implements Microsoft s SMB protocol



Similar documents
SAMBA SERVER (PDC) Samba is comprised of a suite of RPMs that come on the RHEL/Fedora CDs. The files are named:

Replacing a Windows NT/2000 server using Linux and SAMBA

Using Samba to play nice with Windows. Bill Moran Potential Technologies

CSE 265: System and Network Administration

Distributed File System

# Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server ; wins support = no

Configure Samba with ACL and Active Directory integration Robert LeBlanc BioAg Computer Support, Brigham Young University

Tools for Windows System Support

SENECA COLLEGE OF APPLIED ARTS AND TECHNOLOGY

Linuxdays 2005, Samba Tutorial

Univention Corporate Server. Operation of a Samba domain based on Windows NT domain services

Common Internet File System

SAMBA VI: As a Domain Controller

Linux Development Environment Description Based on VirtualBox Structure

Samba on HP StorageWorks Enterprise File Services (EFS) Clustered File System Software

Using Single Sign-on with Samba. Appendices. Glossary. Using Single Sign-on with Samba. SonicOS Enhanced

Windows Services. Support Windows and mixed-platform workgroups with high-performance, affordable network services. Features

OpenVMS Update & OpenVMS Common Internet File System based on SAMBA

Homework 5b: Homework 5b: Samba

Samba File Sharing 1 of 17. File Sharing. Hal Miller & Leeland Artra. Notes:

Parallels Plesk Panel

Installing QuickBooks Enterprise Solutions Database Manager On Different Linux Servers

SuSE File and Print Services with

Active Directory and Linux Identity Management

Samba for Dummies. SCaLE 12x February 22, Mike Maki

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

SWsoft, Inc. Plesk File Server. Administrator's Guide. Plesk 7.5 Reloaded

Integrating Red Hat Enterprise Linux 6 with Microsoft Active Directory Presentation

Allowing Linux to Authenticate to a Windows 2003 AD Domain. Prepared by. Thomas J. Munn, CISSP 11-May-06

Using the Linux Samba Client with iseries NetServer

With Windows Server 2003 Active Directory

Creating an LDAP Directory

Connecting to Windows

How To Set Up A Macintosh With A Cds And Cds On A Pc Or Macbook With A Domain Name On A Macbook (For A Pc) For A Domain Account (For An Ipad) For Free

Intuit QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

Instructions for Adding a MacOS 10.4.x Client to ASURITE

SSSD Active Directory Improvements

INTRODUCING SAMBA 4 NOW, EVEN MORE AWESOMENESS

How to use edgebox as a PDC and to Share Files

Debian and Windows Shared Printing mini HOWTO

Integration with Active Directory. Jeremy Allison Samba Team

TB168 (Rev4) - Networking Linux Based Controls

How To Use 1Bay 1Bay From Awn.Net On A Pc Or Mac Or Ipad (For Pc Or Ipa) With A Network Box (For Mac) With An Ipad Or Ipod (For Ipad) With The

Users, Security, and Domains

Interoperability Update: Red Hat Enterprise Linux 7 beta and Microsoft Windows

Samba in the Enterprise : Samba 3.0 and beyond

By icarus. This article copyright Melonfire All rights reserved.

Integrating UNIX and Linux with Active Directory. John H Terpstra

Other documents in this series are available at: servernotes.wazmac.com

Work No. 1 Samba. What is Samba?

Linux Administrator (Advance)

Clustered CIFS For Everybody Clustering Samba With CTDB. LinuxTag 2009

Agenda. NT4 PDC Migration to Samba-3. Site Objectives. Samba-3 is NOT MS Windows NT. John H Terpstra, Samba-Team jht@samba.org

Attunity RepliWeb PAM Configuration Guide

NT 3.5 / 4.0 Domains for UNIX

Lustre SMB Gateway. Integrating Lustre with Windows

NT4 PDC Migration to Samba 3

WatchGuard Mobile User VPN Guide

Linux System Administration on Red Hat

USING USER ACCESS CONTROL LISTS (ACLS) TO MANAGE FILE PERMISSIONS WITH A LENOVO NETWORK STORAGE DEVICE

<Samba status report>

(june > this is version 3.025a)

Likewise Security Benefits

Virtualization Case Study

Active Directory Integration

Unifying Authorization Models


Security with LDAP. Andrew Findlay. February Skills 1st Ltd

Wolfr am Lightweight Grid M TM anager USER GUIDE

SerNet. Samba Status Update. Linuxkongress Hamburg October 10, Volker Lendecke SerNet Samba Team. Network Service in a Service Network

Samba as an Active Directory Domain Controller

RHEL Clients to AD Integrating RHEL clients to Active Directory

Managing Celerra for the Windows Environment

Samba and Vista with IPv6

Intel Entry Storage System SS4200-E Active Directory Implementation and Troubleshooting

SUSE Manager 1.2.x ADS Authentication

How to share files with Windows and SMB servers v1.0 by pejvan for the Project:Ω (ProjectOmega.free.Fr -

Wazza s QuickStart 13. Leopard Server - Windows Domain

Macintosh Clients and Windows Print Queues

File Services. File Services at a Glance

Centralized Mac Home Directories On Windows Servers: Using Windows To Serve The Mac

OnCommand Performance Manager 1.1

ICANWK504A Design and implement an integrated server solution

CLEO NED Active Directory Integration. Version 1.2.0

1 hours, 30 minutes, 38 seconds Heavy scan. All scanned network resources. Copyright 2001, FTP access obtained

Customer Tips. Basic Configuration and Troubleshooting. for the user. Overview. Basic Configuration. Xerox Multifunction Devices.

Introduction to Operating Systems

Cloud Storage Quick Start Guide

How to Setup Scan to SMB to a Microsoft Vista Workstation Using a bizhub C451/ C550

Red Hat Enterprise Linux as a

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

Using Network Attached Storage with Linux. by Andy Pepperdine

EMC Celerra Network Server

Instructions for Adding a MacOS 10.4.x Server to ASURITE for File Sharing. Installation Section

Cross-Realm Trust Interoperability, MIT Kerberos and AD

ICANWK401A Install and manage a server

Installation Guide Mac OS X Operating Systems

Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip

HP CIFS Server Administrator's Guide Version A HP-UX 11i v2 and HP-UX 11i v3

Implementing a Secure Home Intranet and VPN Solution Using Linux

Transcription:

Samba Samba Interoperating with Windows Nick Urbanik<nicku(at)nicku.org> Copyright Conditions: GNU FDL (seehttp://www.gnu.org/licenses/fdl.html) A computing department Implements Microsoft s SMB protocol SMB = Symmetric Message Block, gave project its name achieved through reverse engineering Microsoft s proprietary protocols (no help from MS, but hindrance) good reputation for stability and performance outperforming MS servers in both respects Current production version supports use as a Windows NT compatible server (file sharing, printing, support for network browsing) Runs on many platforms, including very powerful Solaris machines Most powerful windows servers run Solaris, not Microsoft software! Samba 2.2.x OSSI Samba ver. 1.2 p. 1/22 OSSI Samba ver. 1.2 p. 2/22 Limitations of Samba 2.2.x 1 The release provided with current Linux systems Works as an NT 4 compatible PDC Winbind (part of samba) allows Linux and Unix machines to join a Windows Domain Samba can use LDAP to authenticate against Both samba 2.2.x and 3 have been put into commercial products, such as Network Attached Storage (NAS) hardware Macintosh OS X uses samba to provide services to Windows clients, and also to access Windows services. Does not support Active Directory in the way that a Windows 2000 server does Samba 2.2 cannot interact with a Microsoft Backup Domain Controller (BDC) but it can be a BDC for another samba server User information stored on a Samba PDC is not as complete as that stored on a Windows PDC Samba obeys Linux group file access permissions on the PDC, but it does not tell the client machine about it properly. Group file permissions are hard to set from a client. OSSI Samba ver. 1.2 p. 3/22 OSSI Samba ver. 1.2 p. 4/22

Limitations of Samba 2.2.x 2 Full support for ACLs (access control lists) depends on applying a patch to the Linux kernel and recompiling the kernel, or waiting till the Linux 2.6.x kernel is released When samba is working as a WINS server, it cannot replicate to other WINS servers, whether Microsoft or samba. Support for Unicode is not very good (greatly improved in samba 3) Samba Version 3 (alpha release) Currently used in some commercial systems, but documentation not complete See http://us1.samba.org/samba/ftp/alpha/whatsnew.txt Supports Active Directory: a Samba 3 server can join an ADS realm as a member server and authenticate users using LDAP/kerberos Supports migrating from a Windows NT 4 domain Supports trust relationships with Windows NT domain controllers samba-3.0alpha24-1.i386.rpm is available since 16 May 2003 fromhttp://www.samba.org/ Parts of Samba OSSI Samba ver. 1.2 p. 5/22 OSSI Samba ver. 1.2 p. 6/22 Other Samba Utilities Samba consists of two services: smbd, which does the file sharing, provides print services, and handles authentication of clients, which can be any version of Windows or Linux; nmbd, which does name resolution (the WINS server), and provides support for browsing the network in the Network Neighbourhood The other parts you will work with include: The configuration file,/etc/samba/smb.conf testparm which checks the syntax of /etc/samba/smb.conf Thesmbpasswd program for setting and changing samba passwords nmblookup is useful for troubleshooting NetBIOS name lookup from WINS servers or from samba smbclient is useful for testing samba and Microsoft servers smbmount mounts SMB shares from samba or Windows servers locally. Usually not necessary to call this directly, you can usemount. smbtar is useful for backing up a Windows machine over the network to a Linux or Unix machine. Many others, all withman pages. Seerpm -ql samba-client. OSSI Samba ver. 1.2 p. 7/22 OSSI Samba ver. 1.2 p. 8/22

Is samba installed? 1 On an RPM based system, such as Red Hat Linux, do: $ rpm -qa grep samba samba-swat-2.2.7-5.8.0 samba-2.2.7-5.8.0 samba-client-2.2.7-5.8.0 samba-common-2.2.7-5.8.0 This tells us that: the samba server is installed, together with theswat web configuration system, and that samba version 2.2.7 is installed Is samba installed? 2 You can also check on any system that samba is installed, and find the version with: $ smbd -V Version 2.2.7-security-rollup-fix $ nmbd -V Version 2.2.7-security-rollup-fix Note that this is an updated version, for Red Hat version 8.0. Starting, Stopping Samba OSSI Samba ver. 1.2 p. 9/22 Starting, Stopping Samba OSSI Samba 2ver. 1.2 p. 10/22 Starting, stopping the samba service is the same as with any other service on Linux. Here we assume that/sbin is on yourpath. If not, you can simply type/sbin/service instead ofservice. Is the service running? $ sudo service smb status smbd is stopped nmbd is stopped To start the two samba daemons: $ sudo service smb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] We can verify that they are running: $ sudo service smb status smbd (pid 2523) is running... nmbd (pid 2527) is running... We can stop the service in the same way as other services: $ sudo service smb stop Shutting down SMB services: [ OK ] Shutting down NMB services: [ OK ] OSSI Samba ver. 1.2 p. 11/22 OSSI Samba ver. 1.2 p. 12/22

Starting Samba Automatically To ensure samba starts when the server boots is the same as for any other service. Is the service configured to start on boot? $ chkconfig smb --list smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off This tells us that it is not configured to start at any runlevel. $ sudo chkconfig smb on Now let s check to see if we turned it on: Configuration: /etc/samba/smb.conf Divided into sections Two kinds of sections: global section, holds information about the operation of the whole server share sections, holds information about each share or service provided by server Comments start with either a hash # or a semi-colon ; Extensive documentation inman smb.conf $ chkconfig smb --list smb 0:off 1:off 2:on 3:on 4:on 5:on 6:off Now it will start automatically in runlevels 2, 3, 4 and 5. Example/etc/samba/smb.conf OSSI Samba ver. 1.2 p. 13/22 1 Discussing Example OSSI 1 Samba ver. 1.2 p. 14/22 1 [global] 2 netbios name = my-name 3 workgroup = my-named 4 add user script = /usr/sbin/useradd \ 5 -n -g machines \ 6 -c Samba Machine PDC member \ 7 -d /dev/null -s /bin/false -M %m$ 8 security = user 9 encrypt passwords = yes 10 smb passwd file = /etc/samba/smbpasswd 11 username map = /etc/samba/smbusers 12 os level = 65 13 domain logons = yes 14 logon script = scripts\%u.bat 15 wins server = 192.168.68.240 Configuration is for a Primary Domain Controller (PDC) slide 15 shows global options that determine overall behaviour of samba lines 2 and 3 determine the computer name and domain name of this PDC lines 4 7 are executed to automatically create a special account for any computer that joins the domain line 8 requires a username and password for someone to access resources from the server line 11 tells samba to use a file that maps Windows names to Linux names, e.g.,administrator root OSSI Samba ver. 1.2 p. 15/22 OSSI Samba ver. 1.2 p. 16/22

Discussion of global section 2 Example/etc/samba/smb.conf 2 line 12 increases samba s chances of winning browser elections with Windows machines (see the documentation about browsing) line 13 says that this is a PDC line 14 tells samba where to find login scripts line 15 tells samba to act as a WINS client of that machine To make samba a WINS server, provide a line like this: wins support = yes 1 [homes] 2 comment = Home Directories 3 browseable = no 4 writable = yes 5 [netlogon] 6 comment = Network Logon Service 7 path = /var/samba/netlogon 8 guest ok = no 9 share modes = no 10 [printers] 11 comment = All Printers 12 path = /var/spool/samba 13 browseable = no 14 guest ok = no 15 printable = yes Discussing slide 18 OSSI Samba ver. 1.2 p. 17/22 profiles share OSSI Samba ver. 1.2 p. 18/22 slide 18 shows configuration for individual shares and services offered by the server The homes section (lines 1 4) allow users to automatically access their Linux home directories from the client when they log into the domain. Will appear as a share with the same name as the Linux username. The netlogon section (lines 5 9) is necessary to handle domain log[io]ns, which fail if this share does not exist. It stores log[io]n scripts and system policy files. The printers section (lines 10 15) allows any user to print from a Windows client to a Linux printer. [profiles] path = /var/samba/profiles browsable = no writeable = yes create mask = 0600 directory mask = 0700 Suports roaming profiles on NT/2000/XP The directory inpath must exist and be writable: $ sudo mkdir -p /var/samba/{profiles,netlogon} $ sudo chmod 775 /var/samba/netlogon $ sudo chmod 777 /var/samba/profiles OSSI Samba ver. 1.2 p. 19/22 OSSI Samba ver. 1.2 p. 20/22

Samba Accounts Note that each user needs to have two account entries: a POSIX account entry (i.e., an entry in /etc/passwd, or an LDAP POSIX account) a Samba account entry, which for samba 2.2 is generally in/etc/samba/smbpasswd, but can also be in an LDAP directory. Unless both exist, you will not get access to the samba server from any client. Machines that join the domain also need an entry in the /etc/passwd file (or in the LDAP directory). This is created automatically with theadd user script entry in yoursmb.conf file. See lines 4 7 of slide 15 Documentation Enormous amounts of documentation in /usr/share/doc/samba-2.2.*/ Samba-HOWTO-Collection.pdf is very helpful The manual pages are extensive and quite complete. man smb.conf is helpful. You can visit the samba website to see more documentation: http://us1.samba.org/samba/samba.html The printed book, Using Samba, 2nd Edition, O Reilly, 2003, ISBN 0-596-00256-4 is very clear and helpful. OSSI Samba ver. 1.2 p. 21/22 OSSI Samba ver. 1.2 p. 22/22