SlideShare una empresa de Scribd logo
1 de 12
Samba ServerSetup
SAMBA SERVERSETUP
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 or 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 implement
a simple FTP-likeclient 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.
smbpasswd: Thisallows the user to change thepassword
used for their SMBsessions.
Installation andSetup
Samba Server Setup
Step 1. Install the required packages for Samba:
# yum install –y samba samba-common samba-client
Step 2. Verify the package installation:
# rpm -qa | grep samba
Step 3. Enable the service to start during boot:
# chkconfig smb on
Step 4. Verify that the service is set to start on boot:
# chkconfig smb --list
Samba ServerConfiguration
Samba Server Setup
cat /etc/samba/smb.conf Contain main configuration file
cat /etc/samba/smb.user Maps samba and Redhat users
cat /etc/samba/smb.passwd Contain samba user password
Make backup files
Samba Server Setup
Step1.
# cp /etc/samba/smb.conf /etc/samba/smb.bk
Step2.
# nano /etc/samba/smb.conf
Step3.
Saveandexit (ctrl+x)
Check the syntax of configuration file
# testparm
Add Users
Samba Server Setup
useradd user01
To add a local user: smbpasswd –a user01
Syntax: smbpasswd [option] user
-a Add a users
-e Enable a users
-d Disables a users
-x Delete a users
Verfiy a users
# pdbedit -w -L
Samba ClientConfiguration
Samba Server Setup
Share the Samba Directory on Windows machine
server1:/smbdata /users/smbdata smbfs defaults 00
or use
Syntax: smbclient [option]
-L Lists Samba shares
-U Define users to connect with
-P Defines the password to connect with
THANKS

Más contenido relacionado

La actualidad más candente

Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
Raghu nath
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
Hameda Hurmat
 
Printing with cups (linux)
Printing with cups (linux)Printing with cups (linux)
Printing with cups (linux)
Raghu nath
 

La actualidad más candente (20)

Ltsp Slide
Ltsp SlideLtsp Slide
Ltsp Slide
 
Ltsp
LtspLtsp
Ltsp
 
Workshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows ShareWorkshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows Share
 
IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
 
JMP105 - "How Stuff Works" - Domino Style!
JMP105 - "How Stuff Works" - Domino Style!JMP105 - "How Stuff Works" - Domino Style!
JMP105 - "How Stuff Works" - Domino Style!
 
Http streaming
Http streamingHttp streaming
Http streaming
 
Cloud Compt
Cloud ComptCloud Compt
Cloud Compt
 
RHCSA
RHCSARHCSA
RHCSA
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
 
IBM Connect 2014 BP103: Ready, Aim, Fire: Mastering the Latest in the Adminis...
IBM Connect 2014 BP103: Ready, Aim, Fire: Mastering the Latest in the Adminis...IBM Connect 2014 BP103: Ready, Aim, Fire: Mastering the Latest in the Adminis...
IBM Connect 2014 BP103: Ready, Aim, Fire: Mastering the Latest in the Adminis...
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
 
M3 nfs fs-3.2.1
M3 nfs fs-3.2.1M3 nfs fs-3.2.1
M3 nfs fs-3.2.1
 
三分鐘用 PMM 架好監控系統
三分鐘用 PMM 架好監控系統三分鐘用 PMM 架好監控系統
三分鐘用 PMM 架好監控系統
 
Printing with cups (linux)
Printing with cups (linux)Printing with cups (linux)
Printing with cups (linux)
 
11 cool features in Defrag.nsf+ 11
11 cool features in Defrag.nsf+ 1111 cool features in Defrag.nsf+ 11
11 cool features in Defrag.nsf+ 11
 
Medusa Project
Medusa ProjectMedusa Project
Medusa Project
 
Linux network manager configure
Linux network manager configureLinux network manager configure
Linux network manager configure
 
Unix
UnixUnix
Unix
 

Similar a Samba server in sna

Cent os 5.1 - configuring samba 3.0 to use the ads security mode
Cent os 5.1  - configuring samba 3.0 to use the ads security modeCent os 5.1  - configuring samba 3.0 to use the ads security mode
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
B Sasi Kumar
 
Dane presentation
Dane presentationDane presentation
Dane presentation
Ankit Singh
 
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
 

Similar a Samba server in sna (20)

Samba server
Samba serverSamba server
Samba server
 
Samba power point presentation
Samba power point presentationSamba power point presentation
Samba power point presentation
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Samba
SambaSamba
Samba
 
Topic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptxTopic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptx
 
Rhel4
Rhel4Rhel4
Rhel4
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
Cent os 5.1  - configuring samba 3.0 to use the ads security modeCent os 5.1  - configuring samba 3.0 to use the ads security mode
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
Server configuration
Server configurationServer configuration
Server configuration
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Dane presentation
Dane presentationDane presentation
Dane presentation
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
 
Samba
SambaSamba
Samba
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
zLAMP
zLAMPzLAMP
zLAMP
 
Install websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bitsInstall websphere message broker 8 RHEL 6 64 bits
Install websphere message broker 8 RHEL 6 64 bits
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Samba server in sna

  • 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 or 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 implement a simple FTP-likeclient 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. smbpasswd: Thisallows the user to change thepassword used for their SMBsessions.
  • 7. Installation andSetup Samba Server Setup Step 1. Install the required packages for Samba: # yum install –y samba samba-common samba-client Step 2. Verify the package installation: # rpm -qa | grep samba Step 3. Enable the service to start during boot: # chkconfig smb on Step 4. Verify that the service is set to start on boot: # chkconfig smb --list
  • 8. Samba ServerConfiguration Samba Server Setup cat /etc/samba/smb.conf Contain main configuration file cat /etc/samba/smb.user Maps samba and Redhat users cat /etc/samba/smb.passwd Contain samba user password
  • 9. Make backup files Samba Server Setup Step1. # cp /etc/samba/smb.conf /etc/samba/smb.bk Step2. # nano /etc/samba/smb.conf Step3. Saveandexit (ctrl+x) Check the syntax of configuration file # testparm
  • 10. Add Users Samba Server Setup useradd user01 To add a local user: smbpasswd –a user01 Syntax: smbpasswd [option] user -a Add a users -e Enable a users -d Disables a users -x Delete a users Verfiy a users # pdbedit -w -L
  • 11. Samba ClientConfiguration Samba Server Setup Share the Samba Directory on Windows machine server1:/smbdata /users/smbdata smbfs defaults 00 or use Syntax: smbclient [option] -L Lists Samba shares -U Define users to connect with -P Defines the password to connect with