What is Samba Server and features 

what is Samba Server a networking protocol that allows you to share files and print services between windows and Linux machine. It uses the port number 445 and 139 for TCP.

Server Message Block(SMB) now well known as Common Internet File System (CIFS). Samba can also be used as Active directory in Linux Server.

If you want to block bulk of files and print sharing traffic, you need to block both port 445 and 139. 

Check Out : Nagios Service failed To Start

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 Domain Controller (BDC) for a samba based PDC.
  •  Provides Windows Internet Named Service (WINS) name resolution.

Packages required for Samba 

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

Check Out : Restore & Backup Of MySQL Server

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

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

17 − fifteen =