SlideShare a Scribd company logo
Samba ServerSetupPTS LAB PRESENTATION
SAMBA SERVERSETUP
SUBMITTED BY :- ROHIT MALAV
ENROLLMENT :- CP10101609979
SUBMITTED TO :-LAVISHA SAHU
Samba Service
Samba Server Setup
Fileand Printer Sharing from LINIX toWindows
Uses smbDaemon
service smb start/stop/restart
What isSamba??
Samba Server Setup
Sambais an Open SourceSuite, that provides seamlessfile and
print services to SMB/CIFSclients.
•
•
•
•
Sambais freely available.
With Samba,you can share aLinux files ystemwith
Windows and vice versa.
Youcan also share printers connected to either Linux ora
system with Windows.
Sambaenables aLinux or Unix server to function asafile
server for client PCsrunning Windows software.
What isSamba??
Samba Server Setup
What isSMB?
• SMBstands for – Server MessageBlock.
• It is a protocol by which a lot of PC-related machines
share files and printers and other information such as
lists of available files and printers.
• Operating systems that support this natively include
Windows, OS/2, and Linux.
What is CIFS?
• CIFS – Common Internet File System is a protocol
that is basically an updated SMB.
Components of SMB
Samba Server Setup
smbd daemon: Thisprovides the file and print services toSMB
clients suchasWindows NTor other Linux or Unixclients.
•
•
•
•
smb.conf: Thisis the configuration file forsmbd.
nmbd daemon: Thisdaemon provides NetBIOS
nameserving and browsing support.
smbclient: Thisis an smb client program that implementa
simple FTP-likeclient on aLinux or Unixbox.
smbmount: Thismounting program enables mounting of
server directories on aLinux or Unixbox.
Components of SMB
Samba Server Setup
•
•
•
•
testparm: This utility is used to test the smb.conf
configuration file.
smbstatus: Thisprograms lists the currentSamba
connections.
SWAT:Swat allows aSambaadministrator to configure the
smb.conf file via aWebbrowser.
smbpasswd: Thisallows the user to change thepassword
used for their SMBsessions.
Installation andSetup
Samba Server Setup
TheSambaServer packagecan be downloaded from the
Sambawebsite.
• Thefile needs tobe untared and then configured using
a./configure command in the sourcedirectory.
• Then the smb.conf file should be created. Thesmb.conffile
hasthree separate sections:
[global] : This section controls parameters for the entire SMB
server. It also provides default values for the other sections.
Examples: workgroup =MYGROUP
server string =SambaServer
Installation andSetup
Samba Server Setup
Continued…
hosts allow =192.168.1 127.
printcap name =/etc/printcap
load printers =yes
guest account =pcguest
encrypt passwords =yes
smb passwd file =/etc/samba/smbpasswd
[homes]: This section allows network clients to connect to a
user’s home directory withouthaving an explicit entry in the
smb.conffile.
Examples:
[homes]
browseable =no
writeable =yes
Installation andSetup
Samba Server Setup
Continued…
[printers]: This section is used to specify whichprinters
are available.
Examples:
[printers]
print ok =yes
printer name =lp_mine
path =/home/everyone
Thetestparm program helps in testing thesmb.conf
file once it isconfigured.
Samba ServerConfiguration
Samba Server Setup
Use GUI Applications Server Settings Services
SMB Configuration File:/etc/samba/smb.conf
Configuring File and DirectorySharing
[share_name]
comment =Fred's HomeDirectory
path =/home/fred
valid users=fred
public =no
writable =yes
printable =no
Samba ServerConfiguration
Samba Server Setup
Configuring PrinterSharing
[printer_share_name]
comment =Fred's Printer
valid users =fred
path =/var/spool/samba
printer =freds_printer
public =no
writable =no
printable =yes
Authentication Methods
Samba Server Setup
Use local username/password (stored in
/etc/samba/smbpasswd)
To add a local user: smbpasswd –a fred (fred should be a
user in/etc/passwd)
HOW TO CONNECT LINUX TOWINDOW
Step 1st. First we check there is samba server package is installed or not. We find package
samba* not installed.Then we install samba* package with help of yum server.
Here samba server is installing
Here samba* installation iscompleted.
Step 2nd. We have to create a DIRECTORY on / which one has to be shared.Then we create
a valid user who has been shared thedirectories.
1.4
Directory (/manoz) and valid (AARAV) user has beencreated.
Step 3rd. Now we get the knowledge of our system’s IP address and who has been made by us is being connecting or not.
1.5
Now we got system’s IP address. But there is error in connection. Now we have to
troubleshoot this connection error for this validuser.
Step 4th. In the next step we open the samba server configurationfile.
Command: vim/etc/samba/conf/smb.conf
1.6
This is configurationfile.
1.7
This is also a part of configurationfile.
Step 5th. Last page of configuration file we make somechanges here.
1.8
After saving changes safely we came out from this configurationfile.
Step 6th. Now we check the context of directory(/manoz).
Command: ls –lZ /manoz
1.9
Context of the directoryis default now we make it samba because directoryis shared by particular Samba server.
Step 7th.Forchanging the context of the directorywe have to set boolians of the samba server.
1.10
Using getsebool command we can turn on the Booleans of samba.
Step 8th. Nowwe set context of directoryas samba.
Command: chcon –R –tsamba_etc_t /manoz
1.11
Context changed of directorysuccessfully.
Step 9th. Now we try to connect theuser.
Command: smbclient //192.168.0.12/manoz –U AARAV
1.12
Connection is successfullydone.
Step 10th. Check the shared directory.
Command: ls
1.13
Shared directoryisthere.
Samba ClientConfiguration
Samba Server Setup
Share the Samba Directory on Windows machine
Share the Samba Filesystem on Unix machine by
specifying in /etc/fstab
server1:/smbdata /users/smbdata smbfs defaults 00
or use
smbmount //server1/smbdata /users/smbdata–o
username=fred
Samba BasicConfiguration
Samba Server Setup
# mkdir santosh
# cdsantosh
# ls
# touch ab cd (touch – blank file creation)
#ls
Samba BasicConfiguration
Samba Server Setup
# nano /etc/samba/smb.conf
(Go to end of config file i.e from public and remove thecomments)
Make following ammendment
[santoshshare] (by replacing[public])
(only 3octets)
Comment =My sharefiles
Path =/santosh
Public =yes
Browseable =yes
Valid users =santosh
Writable =no
Hosts allow =192.168.1.
(save and exit)
Samba BasicConfiguration
Samba Server Setup
# smb passwd –a santosh
Passwd: abc123 (any password)
Retype passwd : abc123
# service smb restart
Go to windows – run – and type
– 192.168.1.111(samba server ip)
Samba BasicConfiguration
Samba Server Setup
# iptables –L
# iptables– F
(Disable iptables)
(wiil displayiptables)
(wiil flushiptables)
# service iptables save
# service iptables stop
#set enforce0 (enforcepolicy)
(now go to run in windows and type 192.168.1.111)
THANKS
• Click to edit Master textstyles
– Secondlevel
• Third level
– Fourth level
» Fifth level

More Related Content

PPTX
Samba server linux (SMB) BY ROHIT MALAV
PPT
Samba server
PPTX
Samba server in sna
PPTX
PPT
Presentation on samba server & apache server
ODP
Using samba
PPT
Samba server configuration
PPT
Samba
Samba server linux (SMB) BY ROHIT MALAV
Samba server
Samba server in sna
Presentation on samba server & apache server
Using samba
Samba server configuration
Samba

What's hot (20)

PPTX
Samba power point presentation
DOCX
Samba server installation and File sharing
PDF
Samba
PPTX
Samba
DOC
Samba Optimization and Speed Tuning f...
PDF
Samba tutorial
PDF
Ftp server linux
PPT
PDF
Modul server debian 5
PPTX
SquirrelMail for webmail
PDF
Step by step_linux_guide
PPTX
Linux network file system (nfs)
PDF
How to run multiple instances of transmission daemon in linux debian or ubuntu
PDF
HBase 2.0 cluster topology
ODP
Ubuntu For Intranet Services
PDF
Ltsp talk
PDF
Network File System (NFS)
PPTX
PPTX
Presentation Linux Server setup Advance Networking
Samba power point presentation
Samba server installation and File sharing
Samba
Samba
Samba Optimization and Speed Tuning f...
Samba tutorial
Ftp server linux
Modul server debian 5
SquirrelMail for webmail
Step by step_linux_guide
Linux network file system (nfs)
How to run multiple instances of transmission daemon in linux debian or ubuntu
HBase 2.0 cluster topology
Ubuntu For Intranet Services
Ltsp talk
Network File System (NFS)
Presentation Linux Server setup Advance Networking
Ad

Similar to samba server setup Pts ppt (rohit malav) (20)

PPTX
Presentation on samba server
PDF
Meeting 9 samba
PPTX
Topic # 26 Samba Server.pptx
PPTX
Presentation1
PPT
Chapter 05
PPTX
Linux System Administration - NFS Server
PPTX
14 FILE Server
DOCX
Samba server Pts report pdf by Rohit malav
PDF
Samba4 Introduction
PPTX
Samba server configuration
PPT
Linux Conf Admin
PPT
Linux conf-admin
PPT
Linux conf-admin
PPT
FILE SERVER
ODT
Linux tips
PDF
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
PPTX
Linux Presentation
PDF
Linux cifs-client-guide
PDF
Nemo server manual_v1
PPT
Karkha unix shell scritping
Presentation on samba server
Meeting 9 samba
Topic # 26 Samba Server.pptx
Presentation1
Chapter 05
Linux System Administration - NFS Server
14 FILE Server
Samba server Pts report pdf by Rohit malav
Samba4 Introduction
Samba server configuration
Linux Conf Admin
Linux conf-admin
Linux conf-admin
FILE SERVER
Linux tips
Access Network Attached Storage in RHEL - RHCSA (RH134).pdf
Linux Presentation
Linux cifs-client-guide
Nemo server manual_v1
Karkha unix shell scritping
Ad

More from Rohit malav (20)

PPTX
Aca lab project (rohit malav)
PPTX
operating system calls input and output by (rohit malav)
PPTX
Python pandas liberary
PPTX
Presentation by purshotam verma
PPTX
Deep learning in python by purshottam verma
PPTX
Atm Security System Using Steganography Nss ptt by (rohit malav)
PPTX
System calls operating system ppt by rohit malav
PPTX
A project on spring framework by rohit malav
PPTX
android text encryption Network security lab by rohit malav
PPTX
Spring frame work by rohit malav(detailed)
PPTX
spring framework ppt by Rohit malav
PPTX
Payroll system ppt1 (rohit malav)
PPTX
Payroll system ppt2 (rohit malav) version point 2
PPTX
ONLINE STUDENT MANAGEMENT SYSTEM
PPTX
digital unlock power point slide
PDF
Rohit android lab projects in suresh gyan vihar
DOCX
Snake report ROHIT MALAV
PPTX
Gyan vihar app
PPTX
Payroll system ppt1(ads) (rohit malav)
PPTX
BLOOD BANK MENAGEMENT SYSTEM BY ROHIT MALAV
Aca lab project (rohit malav)
operating system calls input and output by (rohit malav)
Python pandas liberary
Presentation by purshotam verma
Deep learning in python by purshottam verma
Atm Security System Using Steganography Nss ptt by (rohit malav)
System calls operating system ppt by rohit malav
A project on spring framework by rohit malav
android text encryption Network security lab by rohit malav
Spring frame work by rohit malav(detailed)
spring framework ppt by Rohit malav
Payroll system ppt1 (rohit malav)
Payroll system ppt2 (rohit malav) version point 2
ONLINE STUDENT MANAGEMENT SYSTEM
digital unlock power point slide
Rohit android lab projects in suresh gyan vihar
Snake report ROHIT MALAV
Gyan vihar app
Payroll system ppt1(ads) (rohit malav)
BLOOD BANK MENAGEMENT SYSTEM BY ROHIT MALAV

Recently uploaded (20)

PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Welding lecture in detail for understanding
PPTX
web development for engineering and engineering
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PPT
Mechanical Engineering MATERIALS Selection
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
composite construction of structures.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Welding lecture in detail for understanding
web development for engineering and engineering
Internet of Things (IOT) - A guide to understanding
Lecture Notes Electrical Wiring System Components
Mechanical Engineering MATERIALS Selection
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
R24 SURVEYING LAB MANUAL for civil enggi
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
bas. eng. economics group 4 presentation 1.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
composite construction of structures.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems

samba server setup Pts ppt (rohit malav)

  • 1. Samba ServerSetupPTS LAB PRESENTATION SAMBA SERVERSETUP SUBMITTED BY :- ROHIT MALAV ENROLLMENT :- CP10101609979 SUBMITTED TO :-LAVISHA SAHU
  • 2. Samba Service Samba Server Setup Fileand Printer Sharing from LINIX toWindows Uses smbDaemon service smb start/stop/restart
  • 3. What isSamba?? Samba Server Setup Sambais an Open SourceSuite, that provides seamlessfile and print services to SMB/CIFSclients. • • • • Sambais freely available. With Samba,you can share aLinux files ystemwith Windows and vice versa. Youcan also share printers connected to either Linux ora system with Windows. Sambaenables aLinux or Unix server to function asafile server for client PCsrunning Windows software.
  • 4. What isSamba?? Samba Server Setup What isSMB? • SMBstands for – Server MessageBlock. • It is a protocol by which a lot of PC-related machines share files and printers and other information such as lists of available files and printers. • Operating systems that support this natively include Windows, OS/2, and Linux. What is CIFS? • CIFS – Common Internet File System is a protocol that is basically an updated SMB.
  • 5. Components of SMB Samba Server Setup smbd daemon: Thisprovides the file and print services toSMB clients suchasWindows NTor other Linux or Unixclients. • • • • smb.conf: Thisis the configuration file forsmbd. nmbd daemon: Thisdaemon provides NetBIOS nameserving and browsing support. smbclient: Thisis an smb client program that implementa simple FTP-likeclient on aLinux or Unixbox. smbmount: Thismounting program enables mounting of server directories on aLinux or Unixbox.
  • 6. Components of SMB Samba Server Setup • • • • testparm: This utility is used to test the smb.conf configuration file. smbstatus: Thisprograms lists the currentSamba connections. SWAT:Swat allows aSambaadministrator to configure the smb.conf file via aWebbrowser. smbpasswd: Thisallows the user to change thepassword used for their SMBsessions.
  • 7. Installation andSetup Samba Server Setup TheSambaServer packagecan be downloaded from the Sambawebsite. • Thefile needs tobe untared and then configured using a./configure command in the sourcedirectory. • Then the smb.conf file should be created. Thesmb.conffile hasthree separate sections: [global] : This section controls parameters for the entire SMB server. It also provides default values for the other sections. Examples: workgroup =MYGROUP server string =SambaServer
  • 8. Installation andSetup Samba Server Setup Continued… hosts allow =192.168.1 127. printcap name =/etc/printcap load printers =yes guest account =pcguest encrypt passwords =yes smb passwd file =/etc/samba/smbpasswd [homes]: This section allows network clients to connect to a user’s home directory withouthaving an explicit entry in the smb.conffile. Examples: [homes] browseable =no writeable =yes
  • 9. Installation andSetup Samba Server Setup Continued… [printers]: This section is used to specify whichprinters are available. Examples: [printers] print ok =yes printer name =lp_mine path =/home/everyone Thetestparm program helps in testing thesmb.conf file once it isconfigured.
  • 10. Samba ServerConfiguration Samba Server Setup Use GUI Applications Server Settings Services SMB Configuration File:/etc/samba/smb.conf Configuring File and DirectorySharing [share_name] comment =Fred's HomeDirectory path =/home/fred valid users=fred public =no writable =yes printable =no
  • 11. Samba ServerConfiguration Samba Server Setup Configuring PrinterSharing [printer_share_name] comment =Fred's Printer valid users =fred path =/var/spool/samba printer =freds_printer public =no writable =no printable =yes
  • 12. Authentication Methods Samba Server Setup Use local username/password (stored in /etc/samba/smbpasswd) To add a local user: smbpasswd –a fred (fred should be a user in/etc/passwd)
  • 13. HOW TO CONNECT LINUX TOWINDOW Step 1st. First we check there is samba server package is installed or not. We find package samba* not installed.Then we install samba* package with help of yum server. Here samba server is installing
  • 14. Here samba* installation iscompleted.
  • 15. Step 2nd. We have to create a DIRECTORY on / which one has to be shared.Then we create a valid user who has been shared thedirectories. 1.4 Directory (/manoz) and valid (AARAV) user has beencreated.
  • 16. Step 3rd. Now we get the knowledge of our system’s IP address and who has been made by us is being connecting or not. 1.5 Now we got system’s IP address. But there is error in connection. Now we have to troubleshoot this connection error for this validuser.
  • 17. Step 4th. In the next step we open the samba server configurationfile. Command: vim/etc/samba/conf/smb.conf 1.6 This is configurationfile.
  • 18. 1.7 This is also a part of configurationfile.
  • 19. Step 5th. Last page of configuration file we make somechanges here. 1.8 After saving changes safely we came out from this configurationfile.
  • 20. Step 6th. Now we check the context of directory(/manoz). Command: ls –lZ /manoz 1.9 Context of the directoryis default now we make it samba because directoryis shared by particular Samba server.
  • 21. Step 7th.Forchanging the context of the directorywe have to set boolians of the samba server. 1.10 Using getsebool command we can turn on the Booleans of samba.
  • 22. Step 8th. Nowwe set context of directoryas samba. Command: chcon –R –tsamba_etc_t /manoz 1.11 Context changed of directorysuccessfully.
  • 23. Step 9th. Now we try to connect theuser. Command: smbclient //192.168.0.12/manoz –U AARAV 1.12 Connection is successfullydone.
  • 24. Step 10th. Check the shared directory. Command: ls 1.13 Shared directoryisthere.
  • 25. Samba ClientConfiguration Samba Server Setup Share the Samba Directory on Windows machine Share the Samba Filesystem on Unix machine by specifying in /etc/fstab server1:/smbdata /users/smbdata smbfs defaults 00 or use smbmount //server1/smbdata /users/smbdata–o username=fred
  • 26. Samba BasicConfiguration Samba Server Setup # mkdir santosh # cdsantosh # ls # touch ab cd (touch – blank file creation) #ls
  • 27. Samba BasicConfiguration Samba Server Setup # nano /etc/samba/smb.conf (Go to end of config file i.e from public and remove thecomments) Make following ammendment [santoshshare] (by replacing[public]) (only 3octets) Comment =My sharefiles Path =/santosh Public =yes Browseable =yes Valid users =santosh Writable =no Hosts allow =192.168.1. (save and exit)
  • 28. Samba BasicConfiguration Samba Server Setup # smb passwd –a santosh Passwd: abc123 (any password) Retype passwd : abc123 # service smb restart Go to windows – run – and type – 192.168.1.111(samba server ip)
  • 29. Samba BasicConfiguration Samba Server Setup # iptables –L # iptables– F (Disable iptables) (wiil displayiptables) (wiil flushiptables) # service iptables save # service iptables stop #set enforce0 (enforcepolicy) (now go to run in windows and type 192.168.1.111)
  • 30. THANKS • Click to edit Master textstyles – Secondlevel • Third level – Fourth level » Fifth level