SlideShare a Scribd company logo
Samba Server Setup




             SAMBA SERVER SETUP
Samba Server Setup

                     Samba Service



     File and Printer Sharing from LINIX to Windows
     Uses smb Daemon
     service smb start/stop/restart
Samba Server Setup

                  What is Samba??

  Samba is an Open Source Suite, that provides seamless file and
  print services to SMB/CIFS clients.
   • Samba is freely available.
   • With Samba, you can share a Linux files ystem with
      Windows and vice versa.
   • You can also share printers connected to either Linux or a
      system with Windows.
   • Samba enables a Linux or Unix server to function as a file
      server for client PCs running Windows software.
Samba Server Setup

                 What is Samba??

  What is SMB?
  • SMB stands for – Server Message Block.
  • 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.
Samba Server Setup

               Components of SMB

  smbd daemon: This provides the file and print services to SMB
  clients such as Windows NT or other Linux or Unix clients.
   • smb.conf: This is the configuration file for smbd.
   • nmbd daemon: This daemon provides NetBIOS
      nameserving and browsing support.
   • smbclient: This is an smb client program that implement a
      simple FTP-like client on a Linux or Unix box.
   • smbmount: This mounting program enables mounting of
      server directories on a Linux or Unix box.
Samba Server Setup

               Components of SMB


   • testparm: This utility is used to test the smb.conf
     configuration file.
   • smbstatus: This programs lists the current Samba
     connections.
   • SWAT: Swat allows a Samba administrator to configure the
     smb.conf file via a Web browser.
   • smbpasswd: This allows the user to change the password
     used for their SMB sessions.
Samba Server Setup

                    Installation and Setup

  The Samba Server package can be downloaded from the
  Samba website.
   • The file needs to be untared and then configured using
      a ./configure command in the source directory.
   • Then the smb.conf file should be created. The smb.conf file
      has three 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 = Samba Server
Samba Server Setup

                  Installation and 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 without having an explicit entry in the
  smb.conf file.
  Examples:
          [homes]
             browseable = no
             writeable = yes
Samba Server Setup

                 Installation and Setup

  Continued…
  [printers]: This section is used to specify which printers
  are available.
  Examples:
     [printers]
     print ok = yes
     printer name = lp_mine
     path = /home/everyone

  The testparm program helps in testing the smb.conf
  file once it is configured.
Samba Server Setup

        Samba Server Configuration

     Use GUI Applications  Server Settings  Services  SMB
     Configuration File: /etc/samba/smb.conf
     Configuring File and Directory Sharing
     [share_name]
     comment = Fred's Home Directory
     path = /home/fred
     valid users = fred
     public = no
     writable = yes
     printable = no
Samba Server Setup

         Samba Server Configuration

      Configuring Printer Sharing

     [printer_share_name]
  comment = Fred's Printer
  valid users = fred
  path = /var/spool/samba
  printer = freds_printer
  public = no
  writable = no
  printable = yes
Samba Server Setup

          Authentication Methods


     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 TO WINDOW
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 is completed.
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 the directories.




                                      1.4
                                      Directory (/manoz) and valid (AARAV) user has been created.
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 valid user.
Step 4th. In the next step we open the samba server configuration file.
                              Command: vim /etc/samba/conf/smb.conf




1.6
This is configuration file.
1.7
This is also a part of configuration file.
Step 5th. Last page of configuration file we make some changes here.




1.8
After saving changes safely we came out from this configuration file.
Step 6th. Now we check the context of directory (/manoz).
                          Command: ls –lZ /manoz




1.9
Context of the directory is default now we make it samba because directory is shared by particular Samba server.
Step 7th. For changing the context of the directory we have to set boolians of the samba server.




               1.10
               Using getsebool command we can turn on the Booleans of samba.
Step 8th. Now we set context of directory as samba.
Command: chcon –R –t samba_etc_t /manoz




    1.11
    Context changed of directory successfully.
Step 9th. Now we try to connect the user.
Command: smbclient //192.168.0.12/manoz –U AARAV




         1.12
         Connection is successfully done.
Step 10th. Check the shared directory.
Command: ls




      1.13
      Shared directory is there.
Samba Server Setup

           Samba Client Configuration


     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 0 0
  or use
  smbmount //server1/smbdata /users/smbdata –o
  username=fred
Samba Server Setup

         Samba Basic Configuration

  # mkdir santosh

  # cd santosh

  # ls

  # touch a b c d    (touch – blank file creation)

  # ls
Samba Server Setup

          Samba Basic Configuration

  # nano /etc/samba/smb.conf
  (Go to end of config file i.e from public and remove the comments)
  Make following ammendment
  [santoshshare]        (by replacing [public])
  Comment = My share files
  Path = /santosh
  Public = yes
  Browseable = yes
  Valid users = santosh
  Writable = no
  Hosts allow = 192.168.1.         (only 3 octets)
  (save and exit)
Samba Server Setup

         Samba Basic Configuration


  # 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 Server Setup


         Samba Basic Configuration
            (Disable iptables)
  # iptables –L    (wiil display iptables)
  # iptables – F (wiil flush iptables)
  # service iptables save
  # service iptables stop
  # set enforce 0           (enforce policy)

  (now go to run in windows and type 192.168.1.111)
THANKS
• Click to edit Master text styles
  – Second level
     • Third level
        – Fourth level
            » Fifth level

More Related Content

What's hot

Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
kalyanineve
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
Kevin OBrien
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
Bhavesh Padharia
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
Gaurav Sharma
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
onu9
 
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
Chinthaka Deshapriya (RHCA)
 
User and groups administrator
User  and  groups administratorUser  and  groups administrator
User and groups administrator
Aisha Talat
 
Samba
SambaSamba
Samba
tmavroidis
 
Linux basics
Linux basicsLinux basics
Linux basics
Santosh Khadsare
 
Linux
Linux Linux
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
darshhingu
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
MohanKumar Palanichamy
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
Stephen Ahiante
 
introduction to system administration
introduction to system administrationintroduction to system administration
introduction to system administration
gamme123
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
Prabhakar Thota
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
Hameda Hurmat
 
Apache ppt
Apache pptApache ppt
Apache ppt
poornima sugumaran
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
Gaurav Mishra
 
DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
Shashidhara Vyakaranal
 

What's hot (20)

Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
Sa1 chapter-5-managing-local-linux-users-and-groups-v2 (4)
 
User and groups administrator
User  and  groups administratorUser  and  groups administrator
User and groups administrator
 
Samba
SambaSamba
Samba
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux
Linux Linux
Linux
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
introduction to system administration
introduction to system administrationintroduction to system administration
introduction to system administration
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
13 DHCP Configuration in Linux
13 DHCP Configuration in Linux13 DHCP Configuration in Linux
13 DHCP Configuration in Linux
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
 
DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
 

Viewers also liked

Samba
SambaSamba
Samba
Raghu nath
 
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
 
Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
Jackie Schneider
 
Nfs
NfsNfs
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
guest029bcd
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
udamale
 
Rhel4
Rhel4Rhel4
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
Raghu nath
 
Samba
SambaSamba
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 
Using samba
Using sambaUsing samba
Using samba
Ali Abdo
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
webhostingguy
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linux
Pawan Kumar
 
o samba
o sambao samba
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
Tan Huynh Cong
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
gueste98b36
 
Dhcp presentation
Dhcp presentationDhcp presentation
Web server
Web serverWeb server
Web server
Touhid Arastu
 
Domain name system
Domain name systemDomain name system
Domain name system
Siddique Ibrahim
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
Hema Dhariwal
 

Viewers also liked (20)

Samba
SambaSamba
Samba
 
Presentation on samba server & apache server
Presentation on samba server & apache serverPresentation on samba server & apache server
Presentation on samba server & apache server
 
Introduction to samba
Introduction to samba Introduction to samba
Introduction to samba
 
Nfs
NfsNfs
Nfs
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Rhel4
Rhel4Rhel4
Rhel4
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
 
Samba
SambaSamba
Samba
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
Using samba
Using sambaUsing samba
Using samba
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linux
 
o samba
o sambao samba
o samba
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 
Web server
Web serverWeb server
Web server
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 

Similar to Samba server

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 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 in sna
Samba server in snaSamba server in sna
Samba server in sna
aamir lucky
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
Syaiful Ahdan
 
Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
Sofian Mohamad
 
Samba
SambaSamba
Samba
Md Shihab
 
Topic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptxTopic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptx
AyeCS11
 
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
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
cclay3
 
Samba server installation and File sharing
Samba server installation and File sharingSamba server installation and File sharing
Samba server installation and File sharing
Eagle Eyes
 
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
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
vinod31dec
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
Hameda Hurmat
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
Jagdeep Singh Malhi
 
File Sever
File SeverFile Sever
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
Raja Waseem Akhtar
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
Sreenatha Reddy K R
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
Chris Riccio
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
AhmedEidNassef
 

Similar to Samba server (20)

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
 
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 in sna
Samba server in snaSamba server in sna
Samba server in sna
 
Meeting 9 samba
Meeting 9   sambaMeeting 9   samba
Meeting 9 samba
 
Samba tutorial
Samba tutorialSamba tutorial
Samba tutorial
 
Samba
SambaSamba
Samba
 
Topic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptxTopic # 26 Samba Server.pptx
Topic # 26 Samba Server.pptx
 
Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Samba server installation and File sharing
Samba server installation and File sharingSamba server installation and File sharing
Samba server installation and File sharing
 
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
 
Step by step_linux_guide
Step by step_linux_guideStep by step_linux_guide
Step by step_linux_guide
 
14 FILE Server
14 FILE Server14 FILE Server
14 FILE Server
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
 
Solaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFSSolaris 10 administration 2 Configuring NFS
Solaris 10 administration 2 Configuring NFS
 

More from Santosh Khadsare

Cyber fraud (netflix)
Cyber fraud (netflix)Cyber fraud (netflix)
Cyber fraud (netflix)
Santosh Khadsare
 
INTERNET SECUIRTY TIPS
INTERNET SECUIRTY TIPSINTERNET SECUIRTY TIPS
INTERNET SECUIRTY TIPS
Santosh Khadsare
 
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
Santosh Khadsare
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
Santosh Khadsare
 
Network forensics1
Network forensics1Network forensics1
Network forensics1
Santosh Khadsare
 
Windowsforensics
WindowsforensicsWindowsforensics
Windowsforensics
Santosh Khadsare
 
Lec 1 apln security(4pd)
Lec  1 apln security(4pd)Lec  1 apln security(4pd)
Lec 1 apln security(4pd)
Santosh Khadsare
 
Smart card
Smart cardSmart card
Smart card
Santosh Khadsare
 
Guassvirus
GuassvirusGuassvirus
Guassvirus
Santosh Khadsare
 
IDS and IPS
IDS and IPSIDS and IPS
IDS and IPS
Santosh Khadsare
 
Webmail
WebmailWebmail
Linux Forensics
Linux ForensicsLinux Forensics
Linux Forensics
Santosh Khadsare
 
Web server
Web serverWeb server
Web server
Santosh Khadsare
 
Firewall(linux)
Firewall(linux)Firewall(linux)
Firewall(linux)
Santosh Khadsare
 
Securitytips
SecuritytipsSecuritytips
Securitytips
Santosh Khadsare
 
Linuxfilesys
LinuxfilesysLinuxfilesys
Linuxfilesys
Santosh Khadsare
 
Linuxconcepts
LinuxconceptsLinuxconcepts
Linuxconcepts
Santosh Khadsare
 
Introtolinux
IntrotolinuxIntrotolinux
Introtolinux
Santosh Khadsare
 
New internet
New internetNew internet
New internet
Santosh Khadsare
 
Stuxnet flame
Stuxnet flameStuxnet flame
Stuxnet flame
Santosh Khadsare
 

More from Santosh Khadsare (20)

Cyber fraud (netflix)
Cyber fraud (netflix)Cyber fraud (netflix)
Cyber fraud (netflix)
 
INTERNET SECUIRTY TIPS
INTERNET SECUIRTY TIPSINTERNET SECUIRTY TIPS
INTERNET SECUIRTY TIPS
 
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
INDIAN NATIONAL CYBER SECURITY POLICY (NCSP-2013)
 
Linux forensics
Linux forensicsLinux forensics
Linux forensics
 
Network forensics1
Network forensics1Network forensics1
Network forensics1
 
Windowsforensics
WindowsforensicsWindowsforensics
Windowsforensics
 
Lec 1 apln security(4pd)
Lec  1 apln security(4pd)Lec  1 apln security(4pd)
Lec 1 apln security(4pd)
 
Smart card
Smart cardSmart card
Smart card
 
Guassvirus
GuassvirusGuassvirus
Guassvirus
 
IDS and IPS
IDS and IPSIDS and IPS
IDS and IPS
 
Webmail
WebmailWebmail
Webmail
 
Linux Forensics
Linux ForensicsLinux Forensics
Linux Forensics
 
Web server
Web serverWeb server
Web server
 
Firewall(linux)
Firewall(linux)Firewall(linux)
Firewall(linux)
 
Securitytips
SecuritytipsSecuritytips
Securitytips
 
Linuxfilesys
LinuxfilesysLinuxfilesys
Linuxfilesys
 
Linuxconcepts
LinuxconceptsLinuxconcepts
Linuxconcepts
 
Introtolinux
IntrotolinuxIntrotolinux
Introtolinux
 
New internet
New internetNew internet
New internet
 
Stuxnet flame
Stuxnet flameStuxnet flame
Stuxnet flame
 

Recently uploaded

11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
mansk2
 
INSIDE OUT - PowerPoint Presentation.pptx
INSIDE OUT - PowerPoint Presentation.pptxINSIDE OUT - PowerPoint Presentation.pptx
INSIDE OUT - PowerPoint Presentation.pptx
RODELAZARES3
 
How To Sell Hamster Kombat Coin In Pre-market
How To Sell Hamster Kombat Coin In Pre-marketHow To Sell Hamster Kombat Coin In Pre-market
How To Sell Hamster Kombat Coin In Pre-market
Sikandar Ali
 
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa
 
5. Postharvest deterioration of fruits and vegetables.pptx
5. Postharvest deterioration of fruits and vegetables.pptx5. Postharvest deterioration of fruits and vegetables.pptx
5. Postharvest deterioration of fruits and vegetables.pptx
UmeshTimilsina1
 
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
Codeavour International
 
QCE – Unpacking the syllabus Implications for Senior School practices and ass...
QCE – Unpacking the syllabus Implications for Senior School practices and ass...QCE – Unpacking the syllabus Implications for Senior School practices and ass...
QCE – Unpacking the syllabus Implications for Senior School practices and ass...
mansk2
 
MATATAG CURRICULUM sample lesson exemplar.docx
MATATAG CURRICULUM sample lesson exemplar.docxMATATAG CURRICULUM sample lesson exemplar.docx
MATATAG CURRICULUM sample lesson exemplar.docx
yardenmendoza
 
Introduction to Google Productivity Tools for Office and Personal Use
Introduction to Google Productivity Tools for Office and Personal UseIntroduction to Google Productivity Tools for Office and Personal Use
Introduction to Google Productivity Tools for Office and Personal Use
Excellence Foundation for South Sudan
 
DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008
Glenn Rivera
 
React Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHatReact Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHat
Scholarhat
 
C# Interview Questions PDF By ScholarHat.pdf
C# Interview Questions PDF By ScholarHat.pdfC# Interview Questions PDF By ScholarHat.pdf
C# Interview Questions PDF By ScholarHat.pdf
Scholarhat
 
SQL Server Interview Questions PDF By ScholarHat
SQL Server Interview Questions PDF By ScholarHatSQL Server Interview Questions PDF By ScholarHat
SQL Server Interview Questions PDF By ScholarHat
Scholarhat
 
JavaScript Interview Questions PDF By ScholarHat
JavaScript Interview  Questions PDF By ScholarHatJavaScript Interview  Questions PDF By ScholarHat
JavaScript Interview Questions PDF By ScholarHat
Scholarhat
 
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Alvaro Barbosa
 
3. Maturity_indices_of_fruits_and_vegetable.pptx
3. Maturity_indices_of_fruits_and_vegetable.pptx3. Maturity_indices_of_fruits_and_vegetable.pptx
3. Maturity_indices_of_fruits_and_vegetable.pptx
UmeshTimilsina1
 
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptxSD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
elwoodprias1
 
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.pptFIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
ashutoshklal29
 
Java MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHatJava MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHat
Scholarhat
 
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdfPRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
nservice241
 

Recently uploaded (20)

11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
11EHS Term 3 Week 1 Unit 1 Review: Feedback and improvementpptx
 
INSIDE OUT - PowerPoint Presentation.pptx
INSIDE OUT - PowerPoint Presentation.pptxINSIDE OUT - PowerPoint Presentation.pptx
INSIDE OUT - PowerPoint Presentation.pptx
 
How To Sell Hamster Kombat Coin In Pre-market
How To Sell Hamster Kombat Coin In Pre-marketHow To Sell Hamster Kombat Coin In Pre-market
How To Sell Hamster Kombat Coin In Pre-market
 
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
Dr. Nasir Mustafa CERTIFICATE OF APPRECIATION "NEUROANATOMY"
 
5. Postharvest deterioration of fruits and vegetables.pptx
5. Postharvest deterioration of fruits and vegetables.pptx5. Postharvest deterioration of fruits and vegetables.pptx
5. Postharvest deterioration of fruits and vegetables.pptx
 
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
Codeavour 5.0 International Impact Report - The Biggest International AI, Cod...
 
QCE – Unpacking the syllabus Implications for Senior School practices and ass...
QCE – Unpacking the syllabus Implications for Senior School practices and ass...QCE – Unpacking the syllabus Implications for Senior School practices and ass...
QCE – Unpacking the syllabus Implications for Senior School practices and ass...
 
MATATAG CURRICULUM sample lesson exemplar.docx
MATATAG CURRICULUM sample lesson exemplar.docxMATATAG CURRICULUM sample lesson exemplar.docx
MATATAG CURRICULUM sample lesson exemplar.docx
 
Introduction to Google Productivity Tools for Office and Personal Use
Introduction to Google Productivity Tools for Office and Personal UseIntroduction to Google Productivity Tools for Office and Personal Use
Introduction to Google Productivity Tools for Office and Personal Use
 
DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008DepEd School Calendar 2024-2025 DO_s2024_008
DepEd School Calendar 2024-2025 DO_s2024_008
 
React Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHatReact Interview Question PDF By ScholarHat
React Interview Question PDF By ScholarHat
 
C# Interview Questions PDF By ScholarHat.pdf
C# Interview Questions PDF By ScholarHat.pdfC# Interview Questions PDF By ScholarHat.pdf
C# Interview Questions PDF By ScholarHat.pdf
 
SQL Server Interview Questions PDF By ScholarHat
SQL Server Interview Questions PDF By ScholarHatSQL Server Interview Questions PDF By ScholarHat
SQL Server Interview Questions PDF By ScholarHat
 
JavaScript Interview Questions PDF By ScholarHat
JavaScript Interview  Questions PDF By ScholarHatJavaScript Interview  Questions PDF By ScholarHat
JavaScript Interview Questions PDF By ScholarHat
 
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
Benchmarking Sustainability: Neurosciences and AI Tech Research in Macau - Ke...
 
3. Maturity_indices_of_fruits_and_vegetable.pptx
3. Maturity_indices_of_fruits_and_vegetable.pptx3. Maturity_indices_of_fruits_and_vegetable.pptx
3. Maturity_indices_of_fruits_and_vegetable.pptx
 
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptxSD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
SD_Integrating 21st Century Skills in Classroom-based Assessment.pptx
 
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.pptFIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
FIRST AID PRESENTATION ON INDUSTRIAL SAFETY by dr lal.ppt
 
Java MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHatJava MCQ Questions and Answers PDF By ScholarHat
Java MCQ Questions and Answers PDF By ScholarHat
 
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdfPRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
PRESS RELEASE - UNIVERSITY OF GHANA, JULY 16, 2024.pdf
 

Samba server

  • 1. Samba Server Setup SAMBA SERVER SETUP
  • 2. Samba Server Setup Samba Service File and Printer Sharing from LINIX to Windows Uses smb Daemon service smb start/stop/restart
  • 3. Samba Server Setup What is Samba?? Samba is an Open Source Suite, that provides seamless file and print services to SMB/CIFS clients. • Samba is freely available. • With Samba, you can share a Linux files ystem with Windows and vice versa. • You can also share printers connected to either Linux or a system with Windows. • Samba enables a Linux or Unix server to function as a file server for client PCs running Windows software.
  • 4. Samba Server Setup What is Samba?? What is SMB? • SMB stands for – Server Message Block. • 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. Samba Server Setup Components of SMB smbd daemon: This provides the file and print services to SMB clients such as Windows NT or other Linux or Unix clients. • smb.conf: This is the configuration file for smbd. • nmbd daemon: This daemon provides NetBIOS nameserving and browsing support. • smbclient: This is an smb client program that implement a simple FTP-like client on a Linux or Unix box. • smbmount: This mounting program enables mounting of server directories on a Linux or Unix box.
  • 6. Samba Server Setup Components of SMB • testparm: This utility is used to test the smb.conf configuration file. • smbstatus: This programs lists the current Samba connections. • SWAT: Swat allows a Samba administrator to configure the smb.conf file via a Web browser. • smbpasswd: This allows the user to change the password used for their SMB sessions.
  • 7. Samba Server Setup Installation and Setup The Samba Server package can be downloaded from the Samba website. • The file needs to be untared and then configured using a ./configure command in the source directory. • Then the smb.conf file should be created. The smb.conf file has three 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 = Samba Server
  • 8. Samba Server Setup Installation and 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 without having an explicit entry in the smb.conf file. Examples: [homes] browseable = no writeable = yes
  • 9. Samba Server Setup Installation and Setup Continued… [printers]: This section is used to specify which printers are available. Examples: [printers] print ok = yes printer name = lp_mine path = /home/everyone The testparm program helps in testing the smb.conf file once it is configured.
  • 10. Samba Server Setup Samba Server Configuration Use GUI Applications  Server Settings  Services  SMB Configuration File: /etc/samba/smb.conf Configuring File and Directory Sharing [share_name] comment = Fred's Home Directory path = /home/fred valid users = fred public = no writable = yes printable = no
  • 11. Samba Server Setup Samba Server Configuration Configuring Printer Sharing [printer_share_name] comment = Fred's Printer valid users = fred path = /var/spool/samba printer = freds_printer public = no writable = no printable = yes
  • 12. Samba Server Setup Authentication Methods 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 TO WINDOW 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 is completed.
  • 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 the directories. 1.4 Directory (/manoz) and valid (AARAV) user has been created.
  • 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 valid user.
  • 17. Step 4th. In the next step we open the samba server configuration file. Command: vim /etc/samba/conf/smb.conf 1.6 This is configuration file.
  • 18. 1.7 This is also a part of configuration file.
  • 19. Step 5th. Last page of configuration file we make some changes here. 1.8 After saving changes safely we came out from this configuration file.
  • 20. Step 6th. Now we check the context of directory (/manoz). Command: ls –lZ /manoz 1.9 Context of the directory is default now we make it samba because directory is shared by particular Samba server.
  • 21. Step 7th. For changing the context of the directory we have to set boolians of the samba server. 1.10 Using getsebool command we can turn on the Booleans of samba.
  • 22. Step 8th. Now we set context of directory as samba. Command: chcon –R –t samba_etc_t /manoz 1.11 Context changed of directory successfully.
  • 23. Step 9th. Now we try to connect the user. Command: smbclient //192.168.0.12/manoz –U AARAV 1.12 Connection is successfully done.
  • 24. Step 10th. Check the shared directory. Command: ls 1.13 Shared directory is there.
  • 25. Samba Server Setup Samba Client Configuration 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 0 0 or use smbmount //server1/smbdata /users/smbdata –o username=fred
  • 26. Samba Server Setup Samba Basic Configuration # mkdir santosh # cd santosh # ls # touch a b c d (touch – blank file creation) # ls
  • 27. Samba Server Setup Samba Basic Configuration # nano /etc/samba/smb.conf (Go to end of config file i.e from public and remove the comments) Make following ammendment [santoshshare] (by replacing [public]) Comment = My share files Path = /santosh Public = yes Browseable = yes Valid users = santosh Writable = no Hosts allow = 192.168.1. (only 3 octets) (save and exit)
  • 28. Samba Server Setup Samba Basic Configuration # 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 Server Setup Samba Basic Configuration (Disable iptables) # iptables –L (wiil display iptables) # iptables – F (wiil flush iptables) # service iptables save # service iptables stop # set enforce 0 (enforce policy) (now go to run in windows and type 192.168.1.111)
  • 30. THANKS • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level