SlideShare a Scribd company logo
2
Most read
4
Most read
How To Configure
Samba Server & Client
Md Maksudur Rahman
Id-1178314
Batch -24 -ACSL
IDB-BISEW-Diploma in Networking Technologies
Mail- mr.maksudur@outlook.com
Phone-01722607613
At a glance Samba
• What is Samba
• Why we use Samba
• Configuration file name
• Configuring a Samba Server
• Connecting to a Samba Share
Command Line
Graphical
• Mounting the Share
• Troubleshooting Samba
• Useful Websites
What is Samba
• Samba is a popular freeware program that allows end users to access
and use files, printers, and other commonly shared resources on a
company's intranet or on the Internet. Samba is often referred to as a
network file system and can be installed on a variety of operating
system platforms, including: Linux, most common UNIX platforms,
OpenVMS, and OS/2.
• Samba uses the SMB protocol to share files and printers across a
network connection
Why we use Samba
A Samba server offers the following services:
• Samba is useful if you have a network of both Windows and Linux
machines
• Samba is a strong network service for file and print sharing
• Samba is reliable software that runs on reliable Unix operating system
• Samba has a very nice cost advantage: it's free.
• Share one or more Distributed filesystem (Dfs) trees
• Authenticate clients logging onto a Windows domain
Configuration file name
• Configuration file name is smb.conf that’s are /etc/samba/smb.conf
• We also need to know about this
smbd--- The smbd daemon provides the file and print services to SMB
clients
Nmbd--- The nmbd daemon provides NetBIOS nameservice and
browsing support
Smbclient--The smbclient program implements a simple ftp-like client.
Testparm-- The testparm utility is a simple syntax checker for Samba's
Smbstatus-- The smbstatus tool provides access to information about
the current connections
smbcaclsThe smbcacls command is a tool to set ACL's on remote CIFS
servers
Configuring a Samba Server
• Samba has provided secure, stable and fast file and print services for all
clients using the SMB/CIFS protocol,
• Package name”samba4” now its install use to yum server
# yum install samba4*,,,,, Configure firewall to allow smb traffic
Port number 137,138,139,445 allow this port tcp &udp
Example- iptables -I INPUT -p tcp --dport 138 -j ACCEPT
iptables -I INPUT -p udp --dport 137 -j ACCEPT
Now save iptables “# service iptables save” and “# service iptables restart”
• create directories which you want to share or use existing directory
#mkdir share and create some file on this directory--# touch file1 file2 file3
• create a user to access smb share or use existing user
# useradd us1,,,,,,,,# passwd us1 [passwd add]
# smbpasswd -a us1 [ if you use existing user then only this command would be
enough]
Now go to # vim /etc/samba/smb.conf then go to # find the line starts with
"workgroup=mygroup"change the mygroup to WORKGROUP
fine the line starts with "host allow=“
remove the semicolon (;) and modify the line to add the networks you want to
give access to
Now go to the last line of the file and insert a new line
• [sharename]
• comment = any comment
• path = /path-of-the-share-directory
• browseable = yes
• writable = yes
• printable = yes
• valid users = username
For every share you have to cofigure this file again and again
Now run this command
# service smb start
# chkconfig smb on
# service nmb start
# chkconfig nmb on
# service winbind start
# chkconfig winbind on
To check the share
• smbclient -L ip -U username
• type the password of the user and you should see the shares
Client Configure
• You don't need to configure any client to use smb.
• smb-client package is installed by default.
• To view the shares of a machine type
• smbclient -L ip-or-hostname -U username
• Example: smbclient -L 192.168.100.254 -U student
Connecting to a Samba Share
• You can use Nautilus to view available Samba shares on your network
• Command Line( smbclient -L ip-or-hostname -U username)
• Mounting the Share
Mounting the Share
• To mount a samba share
• mount.cifs //target/sharename /mounting_directory -o user=username
• Example: mount.cifs //192.168.100.254/share /mountsmb -o user=student
• [assuming that the target server is 192.168.100.254, the sharename is
share,
• the mounting directory is /mountsmb and the user is student]
• enter the password for the user student
• ls /mountsmb
• you should see the contents of the share in the /mountsmb directory.
Troubleshooting Samba
• In addition to checking for spelling and typographical errors, check to
ensure the Linux firewall is permitting Samba traffic. Similarly, if
you're using SELinux on your system, you must explicitly permit
Samba traffic, and finally you must enable Network Discovery on the
Windows client machine.
Useful Websites
• http://www.samba.org/
http://www.samba.org/samba/docs/using_samba/toc.html
• www.google.com to search about Samba
• https://access.redhat.com
Thanks to spend valuable Time

More Related Content

PPTX
Presentation on samba server
Veeral Bhateja
 
PPT
Samba server
Santosh Khadsare
 
PPT
active-directory-domain-services
202066
 
PPTX
Windows server
Hideo Amezawa
 
PPTX
What is active directory
Adeel Khurram
 
PPT
Red Hat Certified engineer course
Ali Abdo
 
PPT
CCNA Access Lists
Dsunte Wilson
 
PPT
Dns ppt
Bizuworkk Jemaneh
 
Presentation on samba server
Veeral Bhateja
 
Samba server
Santosh Khadsare
 
active-directory-domain-services
202066
 
Windows server
Hideo Amezawa
 
What is active directory
Adeel Khurram
 
Red Hat Certified engineer course
Ali Abdo
 
CCNA Access Lists
Dsunte Wilson
 

What's hot (20)

PPT
Samba
tmavroidis
 
PPTX
Linux file system
Md. Tanvir Hossain
 
PPTX
IP tables and Filtering
Aisha Talat
 
PPTX
Introduction_of_ADDS
Harsh Sethi
 
PPTX
Understanding the Windows Server Administration Fundamentals (Part-1)
Tuan Yang
 
PPT
Active directory
deshvikas
 
PPTX
Disk and File System Management in Linux
Henry Osborne
 
PPT
Dhcp presentation
Saqib Malik
 
PDF
Windows Server 2012
anilinvns
 
PDF
NFS(Network File System)
udamale
 
PPTX
File sharing ppt
Jes Lubiano
 
PPTX
Network and System Administration
IgguuMuude
 
PPTX
User and groups administrator
Aisha Talat
 
PPTX
Networking in linux
Varnnit Jain
 
PPTX
Dhcp ppt
Hema Dhariwal
 
PDF
Linux introduction
Md. Zahid Hossain Shoeb
 
PPS
RAID
Mukesh Tekwani
 
PPT
Ip addressing classless
Abhishek Kesharwani
 
PPT
Virtualization.ppt
vishal choudhary
 
PPT
Samba server configuration
Rohit Phulsunge
 
Samba
tmavroidis
 
Linux file system
Md. Tanvir Hossain
 
IP tables and Filtering
Aisha Talat
 
Introduction_of_ADDS
Harsh Sethi
 
Understanding the Windows Server Administration Fundamentals (Part-1)
Tuan Yang
 
Active directory
deshvikas
 
Disk and File System Management in Linux
Henry Osborne
 
Dhcp presentation
Saqib Malik
 
Windows Server 2012
anilinvns
 
NFS(Network File System)
udamale
 
File sharing ppt
Jes Lubiano
 
Network and System Administration
IgguuMuude
 
User and groups administrator
Aisha Talat
 
Networking in linux
Varnnit Jain
 
Dhcp ppt
Hema Dhariwal
 
Linux introduction
Md. Zahid Hossain Shoeb
 
Ip addressing classless
Abhishek Kesharwani
 
Virtualization.ppt
vishal choudhary
 
Samba server configuration
Rohit Phulsunge
 
Ad

Viewers also liked (19)

KEY
Introduction to samba
Jackie Schneider
 
PPTX
Samba
Raghu nath
 
ODT
Samba dance
friends4
 
PPTX
Rhel4
Yash Gulati
 
PPT
Presentation on samba server & apache server
Manoz Kumar
 
PDF
o samba
VithĂłria Almeida
 
PPSX
SAMBA- TURMA 3003
portomariana
 
PPT
Nfs
ShingalaKrupa
 
PPT
Samba
Ellen Peliciari
 
PPTX
Samba
Kamilla Castelo
 
PPT
NETWORK FILE SYSTEM
Roshan Kumar
 
ODP
Using samba
Ali Abdo
 
PPTX
Gnome and kde
Kiran Mangrulia
 
PDF
RMI and CORBA Why both are valuable tools
elliando dias
 
PPT
Linux Firewall - NullCon Chennai Presentation
Vinoth Sivasubramanan
 
DOCX
ProgresiĂłn cha-cha-cha
Cristina Montalvo Madridano
 
PPTX
Access control list
Narendra Kumar
 
PPTX
1.2 build cloud_fabric_final
Paulo Freitas
 
Introduction to samba
Jackie Schneider
 
Samba
Raghu nath
 
Samba dance
friends4
 
Rhel4
Yash Gulati
 
Presentation on samba server & apache server
Manoz Kumar
 
SAMBA- TURMA 3003
portomariana
 
NETWORK FILE SYSTEM
Roshan Kumar
 
Using samba
Ali Abdo
 
Gnome and kde
Kiran Mangrulia
 
RMI and CORBA Why both are valuable tools
elliando dias
 
Linux Firewall - NullCon Chennai Presentation
Vinoth Sivasubramanan
 
ProgresiĂłn cha-cha-cha
Cristina Montalvo Madridano
 
Access control list
Narendra Kumar
 
1.2 build cloud_fabric_final
Paulo Freitas
 
Ad

Similar to Samba power point presentation (20)

PPTX
Samba server in sna
aamir lucky
 
PPTX
samba server setup Pts ppt (rohit malav)
Rohit malav
 
PPTX
Samba server linux (SMB) BY ROHIT MALAV
Rohit malav
 
PDF
Meeting 9 samba
Syaiful Ahdan
 
PDF
Samba
Md Shihab
 
PPTX
Topic # 26 Samba Server.pptx
AyeCS11
 
DOC
Samba Optimization and Speed Tuning f...
wensheng wei
 
PDF
Samba tutorial
Sofian Mohamad
 
DOCX
Samba server installation and File sharing
Eagle Eyes
 
PDF
Samba4 Introduction
Manfred Furuholmen
 
PPT
Chapter 05
cclay3
 
PDF
Workshop on CIFS / SMB Protocol Performance Analysis
PerformanceVision (previously SecurActive)
 
PPT
FILE SERVER
Jagdeep Singh Malhi
 
PPT
File Sever
Jagdeep Singh Malhi
 
PPTX
Presentation1
Ashok Ramnath
 
PDF
Linux cifs-client-guide
unixadminrasheed
 
PDF
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
DOCX
Samba server Pts report pdf by Rohit malav
Rohit malav
 
PPTX
Samba server configuration
hunjra
 
PPTX
Linux System Administration - NFS Server
Sreenatha Reddy K R
 
Samba server in sna
aamir lucky
 
samba server setup Pts ppt (rohit malav)
Rohit malav
 
Samba server linux (SMB) BY ROHIT MALAV
Rohit malav
 
Meeting 9 samba
Syaiful Ahdan
 
Samba
Md Shihab
 
Topic # 26 Samba Server.pptx
AyeCS11
 
Samba Optimization and Speed Tuning f...
wensheng wei
 
Samba tutorial
Sofian Mohamad
 
Samba server installation and File sharing
Eagle Eyes
 
Samba4 Introduction
Manfred Furuholmen
 
Chapter 05
cclay3
 
Workshop on CIFS / SMB Protocol Performance Analysis
PerformanceVision (previously SecurActive)
 
FILE SERVER
Jagdeep Singh Malhi
 
File Sever
Jagdeep Singh Malhi
 
Presentation1
Ashok Ramnath
 
Linux cifs-client-guide
unixadminrasheed
 
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
Samba server Pts report pdf by Rohit malav
Rohit malav
 
Samba server configuration
hunjra
 
Linux System Administration - NFS Server
Sreenatha Reddy K R
 

Recently uploaded (20)

PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Basics and rules of probability with real-life uses
ravatkaran694
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
CDH. pptx
AneetaSharma15
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 

Samba power point presentation

  • 1. How To Configure Samba Server & Client Md Maksudur Rahman Id-1178314 Batch -24 -ACSL IDB-BISEW-Diploma in Networking Technologies Mail- [email protected] Phone-01722607613
  • 2. At a glance Samba • What is Samba • Why we use Samba • Configuration file name • Configuring a Samba Server • Connecting to a Samba Share Command Line Graphical • Mounting the Share • Troubleshooting Samba • Useful Websites
  • 3. What is Samba • Samba is a popular freeware program that allows end users to access and use files, printers, and other commonly shared resources on a company's intranet or on the Internet. Samba is often referred to as a network file system and can be installed on a variety of operating system platforms, including: Linux, most common UNIX platforms, OpenVMS, and OS/2. • Samba uses the SMB protocol to share files and printers across a network connection
  • 4. Why we use Samba A Samba server offers the following services: • Samba is useful if you have a network of both Windows and Linux machines • Samba is a strong network service for file and print sharing • Samba is reliable software that runs on reliable Unix operating system • Samba has a very nice cost advantage: it's free. • Share one or more Distributed filesystem (Dfs) trees • Authenticate clients logging onto a Windows domain
  • 5. Configuration file name • Configuration file name is smb.conf that’s are /etc/samba/smb.conf • We also need to know about this smbd--- The smbd daemon provides the file and print services to SMB clients Nmbd--- The nmbd daemon provides NetBIOS nameservice and browsing support Smbclient--The smbclient program implements a simple ftp-like client. Testparm-- The testparm utility is a simple syntax checker for Samba's Smbstatus-- The smbstatus tool provides access to information about the current connections smbcaclsThe smbcacls command is a tool to set ACL's on remote CIFS servers
  • 6. Configuring a Samba Server • Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, • Package name”samba4” now its install use to yum server # yum install samba4*,,,,, Configure firewall to allow smb traffic Port number 137,138,139,445 allow this port tcp &udp Example- iptables -I INPUT -p tcp --dport 138 -j ACCEPT iptables -I INPUT -p udp --dport 137 -j ACCEPT Now save iptables “# service iptables save” and “# service iptables restart” • create directories which you want to share or use existing directory #mkdir share and create some file on this directory--# touch file1 file2 file3 • create a user to access smb share or use existing user
  • 7. # useradd us1,,,,,,,,# passwd us1 [passwd add] # smbpasswd -a us1 [ if you use existing user then only this command would be enough] Now go to # vim /etc/samba/smb.conf then go to # find the line starts with "workgroup=mygroup"change the mygroup to WORKGROUP fine the line starts with "host allow=“ remove the semicolon (;) and modify the line to add the networks you want to give access to Now go to the last line of the file and insert a new line • [sharename] • comment = any comment • path = /path-of-the-share-directory • browseable = yes • writable = yes • printable = yes • valid users = username
  • 8. For every share you have to cofigure this file again and again Now run this command # service smb start # chkconfig smb on # service nmb start # chkconfig nmb on # service winbind start # chkconfig winbind on To check the share • smbclient -L ip -U username • type the password of the user and you should see the shares
  • 9. Client Configure • You don't need to configure any client to use smb. • smb-client package is installed by default. • To view the shares of a machine type • smbclient -L ip-or-hostname -U username • Example: smbclient -L 192.168.100.254 -U student
  • 10. Connecting to a Samba Share • You can use Nautilus to view available Samba shares on your network • Command Line( smbclient -L ip-or-hostname -U username) • Mounting the Share
  • 11. Mounting the Share • To mount a samba share • mount.cifs //target/sharename /mounting_directory -o user=username • Example: mount.cifs //192.168.100.254/share /mountsmb -o user=student • [assuming that the target server is 192.168.100.254, the sharename is share, • the mounting directory is /mountsmb and the user is student] • enter the password for the user student • ls /mountsmb • you should see the contents of the share in the /mountsmb directory.
  • 12. Troubleshooting Samba • In addition to checking for spelling and typographical errors, check to ensure the Linux firewall is permitting Samba traffic. Similarly, if you're using SELinux on your system, you must explicitly permit Samba traffic, and finally you must enable Network Discovery on the Windows client machine.
  • 14. Thanks to spend valuable Time