SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Linux User Management
Linux User ManagementLinux User Management
Linux User Management
Gaurav Mishra
 
Subnetting
SubnettingSubnetting
Subnetting
selvakumar_b1985
 
Lesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol ALesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol A
Mahmmoud Mahdi
 
Nfs
NfsNfs
Nfs
shanmuga rajan
 
File server
File serverFile server
File server
Md. Asifur Rahman Siddiki
 
Understanding the Windows Server Administration Fundamentals (Part-1)
Understanding the Windows Server Administration Fundamentals (Part-1)Understanding the Windows Server Administration Fundamentals (Part-1)
Understanding the Windows Server Administration Fundamentals (Part-1)
Tuan Yang
 
Telnet & SSH
Telnet & SSHTelnet & SSH
Telnet & SSH
NetProtocol Xpert
 
Nfs
NfsNfs
Nfs
tmavroidis
 
SSH
SSHSSH
SSH
Zach Dennis
 
Windows server
Windows serverWindows server
Windows server
Hideo Amezawa
 
System and network administration network services
System and network administration network servicesSystem and network administration network services
System and network administration network services
Uc Man
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
SAMUEL OJO
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
tmavroidis
 
Active Directory
Active Directory Active Directory
Active Directory
Sandeep Kapadane
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basic
Tapan Khilar
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch Configuration
Dsunte Wilson
 
Windows Server 2019.pptx
Windows Server 2019.pptxWindows Server 2019.pptx
Windows Server 2019.pptx
masbulosoke
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
Sadia Bashir
 
DHCP
DHCPDHCP
DHCP
selvakumar_b1985
 
Linux: LVM
Linux: LVMLinux: LVM
Linux: LVM
Michal Sedlak
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
Gaurav Mishra
 
Lesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol ALesson 6: Dynamic Host Configuration Protocol A
Lesson 6: Dynamic Host Configuration Protocol A
Mahmmoud Mahdi
 
Understanding the Windows Server Administration Fundamentals (Part-1)
Understanding the Windows Server Administration Fundamentals (Part-1)Understanding the Windows Server Administration Fundamentals (Part-1)
Understanding the Windows Server Administration Fundamentals (Part-1)
Tuan Yang
 
System and network administration network services
System and network administration network servicesSystem and network administration network services
System and network administration network services
Uc Man
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
SAMUEL OJO
 
Linux Networking Commands
Linux Networking CommandsLinux Networking Commands
Linux Networking Commands
tmavroidis
 
Cisco router basic
Cisco router basicCisco router basic
Cisco router basic
Tapan Khilar
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch Configuration
Dsunte Wilson
 
Windows Server 2019.pptx
Windows Server 2019.pptxWindows Server 2019.pptx
Windows Server 2019.pptx
masbulosoke
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
Sadia Bashir
 

Viewers also liked (18)

Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
Jackie Schneider
 
Samba
SambaSamba
Samba
Vanessa Shane Develos
 
Samba
SambaSamba
Samba
Raghu nath
 
Samba dance
Samba danceSamba dance
Samba dance
friends4
 
Rhel4
Rhel4Rhel4
Rhel4
Yash Gulati
 
Presentation on samba server & apache server
Presentation on samba server & apache serverPresentation on samba server & apache server
Presentation on samba server & apache server
Manoz Kumar
 
o samba
o sambao samba
o samba
Vithória Almeida
 
SAMBA- TURMA 3003
SAMBA- TURMA 3003SAMBA- TURMA 3003
SAMBA- TURMA 3003
portomariana
 
Samba
SambaSamba
Samba
Ellen Peliciari
 
Samba
SambaSamba
Samba
Kamilla Castelo
 
Using samba
Using sambaUsing samba
Using samba
Ali Abdo
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
udamale
 
Gnome and kde
Gnome and kdeGnome and kde
Gnome and kde
Kiran Mangrulia
 
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
 
Linux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai PresentationLinux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai Presentation
Vinoth Sivasubramanan
 
Progresión cha-cha-cha
Progresión cha-cha-chaProgresión cha-cha-cha
Progresión cha-cha-cha
Cristina Montalvo Madridano
 
Access control list
Access control listAccess control list
Access control list
Narendra Kumar
 
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
 
Ad

Similar to Samba power point presentation (20)

Samba server in sna
Samba server in snaSamba server in sna
Samba server in sna
aamir lucky
 
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)
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
Rohit malav
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
Syaiful Ahdan
 
Samba
SambaSamba
Samba
Md Shihab
 
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
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
Hameda Hurmat
 
Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
Sofian Mohamad
 
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
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
Sumant Garg
 
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
 
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdfAccess Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
Green Jb
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
Jagdeep Singh Malhi
 
File Sever
File SeverFile Sever
File Sever
Jagdeep Singh Malhi
 
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
LetsConnect
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
Perforce
 
Rock Solid Sametime for High Availability
Rock Solid Sametime for High AvailabilityRock Solid Sametime for High Availability
Rock Solid Sametime for High Availability
Gabriella Davis
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
Sharon James
 
Samba server in sna
Samba server in snaSamba server in sna
Samba server in sna
aamir lucky
 
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)
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
Rohit malav
 
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
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
Sumant Garg
 
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
 
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdfAccess Network Attached Storage in RHEL - RHCSA (RH134).pdf
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
RHCSA Guru
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy server
Green Jb
 
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
LetsConnect
 
Performance & Scalability Improvements in Perforce
Performance & Scalability Improvements in PerforcePerformance & Scalability Improvements in Perforce
Performance & Scalability Improvements in Perforce
Perforce
 
Rock Solid Sametime for High Availability
Rock Solid Sametime for High AvailabilityRock Solid Sametime for High Availability
Rock Solid Sametime for High Availability
Gabriella Davis
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
Sharon James
 
Ad

Recently uploaded (20)

pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Anti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptxAnti-Depressants pharmacology 1slide.pptx
Anti-Depressants pharmacology 1slide.pptx
Mayuri Chavan
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 

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