+ All Categories

Samba

Date post: 11-Jan-2016
Category:
Upload: rahul-sood
View: 213 times
Download: 0 times
Share this document with a friend
Description:
Learn about Samba and its uses.
40
ADVANTAGE PRO Networking With Success [email protected] 91-44-28263529 /30 SAMBA
Transcript
Page 1: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Page 2: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

   Samba can be used to allow connectivity between

Linux and Windows(xp,vista,2003,2008). Samba can be

used to share printers, share directories, connect to an

2003 domain, and many other useful features. However,

this tutorial explains the steps involved in basic

configuring Samba for file and print sharing.

SAMBA

Page 3: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Packages : Samba,samba-common,samba-clientDaemons : /usr/sbin/nmbd, /usr/sbin/smbd

Script : /etc / init.d /smb

Port : Tcp: 445(-ds)

Configuration : /etc /samba /*

Related : system-config-samba, testparm

Page 4: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

The /etc/samba/smb.conf file is the main configuration file you'll need to edit. It is split into five major sections, they are

Section Description

[global] General Samba configuration parameters

[printers] Used for configuring printers Used for configuring printers

[homes] Defines treatment of user logins

[netlogon] A share for storing logon scripts.

[profile] A share for storing domain logon information such as "favorites" and desktop icons.

Page 5: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Creating common share directory : vi /etc /samba /smb.conf

[my share]

comment = share for john and jerry

path = /data/test

valid user = john sam

public = no

writable = yes

printable = no

create mask = 0765

SAMBA

Page 6: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Installing the samba package using the yum

Page 7: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Installing the samba-config-samba package

using the yum

Page 8: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

The dependency has been resolved

Page 9: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

The samba package has been installed successfully

Page 10: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

SAMBA

Now installing the samba-devel package

Page 11: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Configuration File

Page 12: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

This is the share name of the samba folder

This is the comment for the samba folder

This is the path of the samba folder

The valid users can be listed here

Page 13: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The name of the samba share is samba share

The path of the samba share folder is /home

Page 14: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The smb service is restarted to changes take effect

Page 15: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The smb service is restarted successfully

Page 16: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Now go to windows machine, open run and type the samba

shared ip, and enter. followed by backward slash “\\”

Page 17: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The samba username and password are prompting to

access the samba share

Page 18: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The samba username and password are given

Page 19: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

The samba shared folder is viewed. i.e samba share

Page 20: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Now the user john home directory is also available

Page 21: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Now creating the new directory in the user john

home directory

Page 22: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

It has been created successfully

Page 23: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Edit the samba configuration file

Page 24: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Enter the domain name

Enable the time server

Enable the domain logon

Enable the preferred master

Time the o/s level 65

Enable the domain master

Page 25: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Create a user for windows accounts

Page 26: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Add the user for vectra$

Page 27: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Create a smbpasswd for root user

Page 28: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

View the samba passwd file.

Page 29: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Check the sbmb configration files in any

syntax error.

Page 30: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Samba domain configuration displayed

hear.

Page 31: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Start the smb service.

Page 32: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Change the computer name

Page 33: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Enter the samba domain name

Page 34: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Enter the samba

Page 35: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Sabma domain sues fully connected .

Page 36: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Page 37: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Now restart the computer

Page 38: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Enter the samba domain user name password and

domain name.

Page 39: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30

Samba home folder also mounted automatically.

Page 40: Samba

ADVANTAGE PRO – Networking With Success

[email protected] 91-44-28263529 /30


Recommended