What is Samba Server ?

Samba is a networking protocol that allows you to share files and print services between windows and linux machine. It uses the port number 445/Tcp.

Server Message Block(SMB) now well known as Common Internet File System (CIFS)

Benefits Of Samba Server

  • Windows share can be accessed and mount on linux machine.
  • Can be configured as Primary Domain Controller(PDC) and as Backup Domian Controller (BDC) for a samba based PDC.
  •  Provides  Windows Internet Named Service (WINS) name resolution.

Packages required

  • Samba
  • Samba-client
  • Samba-common
  • Samba-libs
  • Cifs-utils

Configuration File

  • Samba configuration file = /etc/samba/smb.conf
  • Samba linux user mappings = /etc/samba/smbusers
  • Samba log file = /var/log/samba
  • Samba startup/stop directive = /etc/sysconfig/samba
  • Samba user password = /var/lib/samba/private/smbpasswd

Samba Commands to remember

  1. Test Samba Configuration file

Testparm

  1. User password Set

Smbpasswd –a username

  1. Check Access for client from server

Smbclient  -L  //localhost –U  username

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here