SlideShare uma empresa Scribd logo
1 de 14
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

Mais conteúdo relacionado

Mais procurados

NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 
Understanding nas (network attached storage)
Understanding nas (network attached storage)Understanding nas (network attached storage)
Understanding nas (network attached storage)
sagaroceanic11
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentation
Abu Osama
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
Raghu nath
 
Storage Area Network(SAN)
Storage Area Network(SAN)Storage Area Network(SAN)
Storage Area Network(SAN)
Krishna Kahar
 
Network Attached Storage (NAS)
Network Attached Storage (NAS)Network Attached Storage (NAS)
Network Attached Storage (NAS)
sandeepgodfather
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech Arkit
Ravi Kumar
 

Mais procurados (20)

NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Linux: LVM
Linux: LVMLinux: LVM
Linux: LVM
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
Understanding nas (network attached storage)
Understanding nas (network attached storage)Understanding nas (network attached storage)
Understanding nas (network attached storage)
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentation
 
File server
File serverFile server
File server
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Server Virtualization
Server VirtualizationServer Virtualization
Server Virtualization
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Network monitoring tools
Network monitoring toolsNetwork monitoring tools
Network monitoring tools
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
 
Storage Area Network(SAN)
Storage Area Network(SAN)Storage Area Network(SAN)
Storage Area Network(SAN)
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
Network Attached Storage (NAS)
Network Attached Storage (NAS)Network Attached Storage (NAS)
Network Attached Storage (NAS)
 
NAS - Network Attached Storage
NAS - Network Attached StorageNAS - Network Attached Storage
NAS - Network Attached Storage
 
Bash shell scripting
Bash shell scriptingBash shell scripting
Bash shell scripting
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech Arkit
 

Destaque

RMI and CORBA Why both are valuable tools
RMI and CORBA Why both are valuable toolsRMI and CORBA Why both are valuable tools
RMI and CORBA Why both are valuable tools
elliando dias
 
1.2 build cloud_fabric_final
1.2 build cloud_fabric_final1.2 build cloud_fabric_final
1.2 build cloud_fabric_final
Paulo Freitas
 

Destaque (17)

Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
 
Samba
SambaSamba
Samba
 
Samba
SambaSamba
Samba
 
Samba dance
Samba danceSamba dance
Samba dance
 
Rhel4
Rhel4Rhel4
Rhel4
 
Presentation on samba server & apache server
Presentation on samba server & apache serverPresentation on samba server & apache server
Presentation on samba server & apache server
 
o samba
o sambao samba
o samba
 
SAMBA- TURMA 3003
SAMBA- TURMA 3003SAMBA- TURMA 3003
SAMBA- TURMA 3003
 
Samba
SambaSamba
Samba
 
Samba
SambaSamba
Samba
 
Using samba
Using sambaUsing samba
Using samba
 
Gnome and kde
Gnome and kdeGnome and kde
Gnome and kde
 
RMI and CORBA Why both are valuable tools
RMI and CORBA Why both are valuable toolsRMI and CORBA Why both are valuable tools
RMI and CORBA Why both are valuable tools
 
Linux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai PresentationLinux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai Presentation
 
Progresión cha-cha-cha
Progresión cha-cha-chaProgresión cha-cha-cha
Progresión cha-cha-cha
 
Access control list
Access control listAccess control list
Access control list
 
1.2 build cloud_fabric_final
1.2 build cloud_fabric_final1.2 build cloud_fabric_final
1.2 build cloud_fabric_final
 

Semelhante a Samba power point presentation

Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
wensheng wei
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
Sharon James
 
A comprehensive guide that explains the core functioning of Linux, covering t...
A comprehensive guide that explains the core functioning of Linux, covering t...A comprehensive guide that explains the core functioning of Linux, covering t...
A comprehensive guide that explains the core functioning of Linux, covering t...
domaron20
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
Green Jb
 

Semelhante a Samba power point presentation (20)

Samba server in sna
Samba server in snaSamba server in sna
Samba server in sna
 
samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)samba server setup Pts ppt (rohit malav)
samba server setup Pts ppt (rohit malav)
 
Samba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAVSamba server linux (SMB) BY ROHIT MALAV
Samba server linux (SMB) BY ROHIT MALAV
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
 
Samba
SambaSamba
Samba
 
Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
 
Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
A comprehensive guide that explains the core functioning of Linux, covering t...
A comprehensive guide that explains the core functioning of Linux, covering t...A comprehensive guide that explains the core functioning of Linux, covering t...
A comprehensive guide that explains the core functioning of Linux, covering t...
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
Best And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM ConnectionsBest And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM Connections
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
 
Rock Solid Sametime for High Availability
Rock Solid Sametime for High AvailabilityRock Solid Sametime for High Availability
Rock Solid Sametime for High Availability
 
Server configuration
Server configurationServer configuration
Server configuration
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

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- mr.maksudur@outlook.com 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.
  • 13. 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
  • 14. Thanks to spend valuable Time