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

More Related Content

What's hot

User and groups administrator
User  and  groups administratorUser  and  groups administrator
User and groups administrator
Aisha Talat
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
Veeral Bhateja
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
Taaanu01
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
Sreenatha Reddy K R
 
IP tables and Filtering
IP tables and FilteringIP tables and Filtering
IP tables and Filtering
Aisha Talat
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
Knoldus Inc.
 
Samba
SambaSamba
Samba
tmavroidis
 
Workgroup vs domain
Workgroup vs domainWorkgroup vs domain
Workgroup vs domaintameemyousaf
 
Filepermissions in linux
Filepermissions in linuxFilepermissions in linux
Filepermissions in linux
Subashini Pandiarajan
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
Gaurav Mishra
 
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
 
Linux security
Linux securityLinux security
Linux security
trilokchandra prakash
 
Linux
LinuxLinux
Linux
dwarfyray
 
Linux administration
Linux administrationLinux administration
Linux administration
Yogesh Ks
 
Dhcp server configuration
Dhcp server configurationDhcp server configuration
Dhcp server configuration
UttamAgarwal9
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
Hameda Hurmat
 
Linux ppt
Linux pptLinux ppt
Linux ppt
lincy21
 

What's hot (20)

User and groups administrator
User  and  groups administratorUser  and  groups administrator
User and groups administrator
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
File Sever
File SeverFile Sever
File Sever
 
Ch03 system administration
Ch03 system administration Ch03 system administration
Ch03 system administration
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Linux booting process - Linux System Administration
Linux booting process - Linux System AdministrationLinux booting process - Linux System Administration
Linux booting process - Linux System Administration
 
IP tables and Filtering
IP tables and FilteringIP tables and Filtering
IP tables and Filtering
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Samba
SambaSamba
Samba
 
Workgroup vs domain
Workgroup vs domainWorkgroup vs domain
Workgroup vs domain
 
Filepermissions in linux
Filepermissions in linuxFilepermissions in linux
Filepermissions in linux
 
Server configuration
Server configurationServer configuration
Server configuration
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux security
Linux securityLinux security
Linux security
 
Linux
LinuxLinux
Linux
 
Linux administration
Linux administrationLinux administration
Linux administration
 
Dhcp server configuration
Dhcp server configurationDhcp server configuration
Dhcp server configuration
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 

Viewers also liked

Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
Jackie Schneider
 
Samba dance
Samba danceSamba dance
Samba dance
friends4
 
Rhel4
Rhel4Rhel4
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
 
SAMBA- TURMA 3003
SAMBA- TURMA 3003SAMBA- TURMA 3003
SAMBA- TURMA 3003
portomariana
 
Samba
SambaSamba
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
 
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 toolselliando dias
 
Linux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai PresentationLinux Firewall - NullCon Chennai Presentation
Linux Firewall - NullCon Chennai Presentation
Vinoth Sivasubramanan
 
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_finalPaulo Freitas
 

Viewers also liked (18)

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
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
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
 

Similar to Samba power point presentation

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
 
Squid proxy server
Squid proxy serverSquid proxy server
Squid proxy serverGreen 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
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
Sharon James
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
cclay3
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 
Linux Servers
Linux ServersLinux Servers
Linux Servers
Ranjith Siji
 

Similar to 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
 
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
 
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
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
Linux Servers
Linux ServersLinux Servers
Linux Servers
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 

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