Samba Server - Introduction and Installation



What is Samba?


Samba is an Open Source and Free Software suite that provides seamless file and print services to SMB/CIFS clients." Samba is freely available and used to communicate with Linux/Unix servers and Windows-based clients.

Samba implements the CIFS network protocol. Samba offers many services. It can share one or more directory tree. It also provides Windows Internet Name Service (WINS) name-server resolution and Distributed Filesystem (MS-DFS) namespace. It manages printers, print settings, and their associated drivers for access from Windows clients.


Verify installed version



In debian based system use command

aptitude show samba | grep Version
Version: 2:3.6.3-1

In Rpm based system use command

# rpm -q samba
samba-3.0.28-1.el5_2.1


We can check the installed version using below command also.

$ smbd -V
Version 3.0.12

$ find / -name smbd -print
/opt/samba/sbin/smbd



Installing samba


Samba is installed by default on Red Hat Enterprise Linux. If Samba is not yet installed, then you can use below command to install.

You can downloaded the .rpm file, you can install Samba like this

$ rpm -i samba-3.0.28-1.el5_2.1.rpm

You can use yum also to install samba

# yum install samba

Documentation

To install documentation of samba use below command

# yum install samba-doc

You can find the documentation at below given path

# ls -l /usr/share/doc/samba-doc-3.5.10/


Starting and stopping samba


You can start or stop samba using samba daemon smb or samba. In Red Hat smb Daemon is used

# /etc/init.d/smb start

Starting SMB services: [ OK ]

Starting NMB services: [ OK ]


# service smb restart

Shutting down SMB services: [ OK ]

Shutting down NMB services: [ OK ]

Starting SMB services: [ OK ]

Starting NMB services: [ OK ]





More on Samba Server


No comments: