Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,

Slides:



Advertisements
Similar presentations
CSS Central: Central Management Utility Screen View Samples Next.
Advertisements

Chapter One The Essence of UNIX.
Managing User Settings with Group Policy
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.
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.
Chapter 5: Configuring Users and Groups. Windows Vista User Accounts User accounts are the primary means of authentication Built-in Accounts –Administrator:
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
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.
Samba Objectives Contents Practical Summary
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.
Web Server Administration Chapter 5 Managing a Server.
Working with Workgroups and Domains
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.
The University of Akron Summit College Business Technology Dept.
Sharing Resources Lesson 6. Objectives Manage NTFS and share permissions Determine effective permissions Configure Windows printing.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
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.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
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 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.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
Managing User Desktops with Group Policy
IT2204: Systems Administration I 1 6b). Introduction to Linux.
DIT314 ~ Client Operating System & Administration CHAPTER 5 MANAGING USER ACCOUNTS AND GROUPS Prepared By : Suraya Alias.
Managing Groups, Folders, Files and Security Local Domain local Global Universal Objects Folders Permissions Inheritance Access Control List NTFS Permissions.
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
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.
70-270: MCSE Guide to Microsoft Windows XP Professional 1 Windows XP Professional User Accounts Designed for use as a network client for: Windows NT Windows.
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.
Chapter 10: Rights, User, and Group Administration.
Working with Workgroups and Domains Lesson 9. Objectives Understand users and groups Create and manage local users and groups Understand the difference.
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.
Introduction to System Admin Sirak Kaewjamnong. 2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups.
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 21 Administering User Accounts and Groups 1.
Chapter 4- Part3. 2 Implementing User Profiles A local user profile is automatically created at the local computer when you log on with an account for.
SAMBA (ORIGINAL SLIDES BY DR. JAMES WALDEN, NKU) CT320: Advanced Network and System Administration Slide #1 CT320 : Advanced Network and System Administration.
Samba
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
Managing User Desktops with Group Policy
Guide to Operating Systems, 5th Edition
Guide to Linux Installation and Administration, 2e
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
DHCP server & Client Objectives Contents
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
FTP - File Transfer Protocol
Ubuntu Working in Terminal
Workshop Administrasi Jaringan
Samba.
Setting up home folders and roaming profiles
Presentation transcript:

Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam, Website:

Samba Samba is a suite of utilities that allows your Linux box to share files and other resources, such as printers, with Windows boxes. Either configuration will allow everyone at home to have:  their own logins on all the home windows boxes while having their files on the Linux box appear to be located on a new Windows drive  shared access to printers on the Linux box  shared files accessible only to members of their Linux user group.  A PDC stores the login information in a central database on its hard drive. This allows each user to have a universal username and password when logging in from all PCs on the network.  In a Windows Workgroup, each PC stores the usernames and passwords locally so that they are unique for each PC.

Download and Install Packages Most RedHat and Fedora Linux software products are available in the RPM format. Samba is comprised of a suite of RPMs that come on the Fedora CDs. The files are named: samba samba-common samba-client samba-swat

How to Get Samba Started You can configure Samba to start at boot time using the chkconfig command: tmp]# chkconfig smb on You can start/stop/restart Samba after boot time using the smb initialization script as in the examples below:  [ tmp]# service smb start  tmp]# service smb stop  tmp]# service smb restart

The Samba Configuration File The /etc/samba/smb.conf file is the main configuration file you'll need to edit. It is split into five major sections,  [global] - General Samba configuration parameters  [printers] - Used for configuring printers  [homes] - Defines treatment of user logins  [netlogon] - A share for storing logon scripts. (Not created by default.)  [profile] - A share for storing domain logon information such as "favorites" and desktop icons. (Not created by default.) You can edit this file by hand, or more simply through Samba's SWAT web interface. NOTE: Make sure you copy the original configuration file before editing it!

The [Global] Section The [global] section governs the general Samba settings. domain logonsYesTells Samba to become the PDC preferred masterYesMakes the PDC act as the central store for the names of all windows clients, servers and printers on the network. Very helpful when you need to "browse" your local network for resources. Also known as a local master browser. domain master YesTells Samba to become the master browser across multiple networks all over the domain. The local master browsers register themselves with the domain master to learn about resources on other networks. os level YesSets the priority the Samba server should use when negotiating to become the PDC with other Windows servers. A value of 65 will usually make the Samba server win. wins supportYesAllows the Samba server to provide name services for the network. In other words keeps track of the IP addresses of all the domain's servers and clients.

Cont.. time serverYesLets the samba server provide time updates for the domain's clients. workgroup"homenet"The name of the Windows domain we'll create. The name you select is your choice. I've decided to use "homenet". securityuserMake domain logins query the Samba password database located on the samba server itself. [global] workgroup = TEST time server = Yes domain logons = Yes os level = 65 preferred master = Yes domain master = Yes

The [homes] Section The [homes] section governs how Samba handles default login directories. browseableNoDoesn't allow others to browse the contents of the directory read onlyNoAllows the samba user to also write to their Samba Linux directory create mask 0664 Makes new files created by the user to have "644" permissions. You want to change this to "0600" so that only the login user has access to files. directory mask0775Makes new sub-directories created by the user to have "775" permissions. You want to change this to "0700" so that only the login user has access to directories. [homes] read only = No browseable = No create mask = 0644 directory mask = 0755

The [netlogon] and [profiles] Share Sections The [netlogon] share section contains scripts that the windows clients may use when they log into the domain. The [profiles] share section stores things such as favorites and desktop icons. Your smb.conf file should look like this when you're finished: [netlogon] path = /home/samba/netlogon guest ok = Yes [profiles] path = /home/samba/profiles read only = No create mask = 0600 directory mask = 0700

Cont… Remember to create these share directories from the command line afterwards. tmp]# mkdir -p /home/samba/netlogon tmp]# mkdir -p /home/samba/profile tmp]# chmod -R 0755 /home/samba

The [printers] Share Section Samba has special shares just for printers, and these are configured in the [printers] section. [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No

How To Create A Samba PDC Administrator User By default, the root user is the Samba administrator, Fortunately, you can add workstations to the Windows domain by creating a Samba specific root password. This is done using the smbpasswd command. tmp]# /usr/bin/smbpasswd -a root password Note: Samba domain logins use the smbpasswd password. Samba passwords are stored in the /etc/samba/smbpasswd file.

Adding The Users In Linux To create the user, use the command: tmp]# useradd -g 100 peter Giving them a Linux password is only necessary if the user needs to log into the Samba server directly. If the user does, use this method: tmp]# passwd peter Changing password for user peter. New password: Retype new password: passwd: all authentication tokens updated successfully. tmp]#

Creating Group Shares in SAMBA 1. Create a new Linux group managers: tmp]# /usr/sbin/groupadd managers 2. Create a new directory for the group's files. If one user is designated as the leader, you might want to change the chown statement to make them owner tmp]# mkdir /home/managers-files tmp]# chgrp parents /home/managers-files tmp]# chmod 0770 /home/managers-files

Cont… 3. Add the group members to the new group. For instance, the command to add a user named jimmy to the group is: tmp]# /usr/sbin/usermod -G managers jimmy All your members are in the group; now they need to share.

Mapping The Linux Users To An smbpassword Next, you need to create Samba domain login passwords for the user tmp]# /usr/bin/smbpasswd -a username password The -a switch adds the user to the /etc/smbpasswd file. Use a generic password then have users change it immediately from their workstations in the usual way. Remember the smbpasswd sets the Windows Domain login password for a user, which is different from the Linux login password to log into the Samba box.

How To Delete Users From Your Samba Domain Deleting users from your Samba domain is a two stage process in which you have to remove the user from the Linux server and also remove the user's corresponding smbpasswd entry. Here's how: 1. Delete the users using the smbpasswd with the -x switch tmp]# smbpasswd -x john Deleted user john. root]# 2. Delete The Linux User by following the normal deletion process. For example, to delete the user john and all john's files from the Linux server use: tmp]# userdel -r john

Cont… Sometimes you may not want to delete the user's files so that they can be accessed by other users at some other time. In this case you can just deactivate the user's account using the passwd -l username command.

EnD