Samba As File Server (Linux File Server)
Samba As Linux File Server.
What is Samba ?
Introduction of Samba (Linux File Server). Samba is derived from word SMB, whick means Session Message Block. Samba is a protocol used to exchange data between Linux and windows machines.
Now we are going to configure samba as file server. we will share files on linux server and access them on windows xp machine.
File Server : [wp_ad_camp_2]
Server Details
==============
OS = Centos 5.5
Name = samba.broexperts.com
IP = 192.168.0.200
Installation
============
# yum install samba
Now Edit smb.conf file which is located on this location
file path = /etc/samba/smb.conf
First of all create backup of orignal file.
# cp /etc/samba/smb.conf /etc/samba/smb.conf.orignal
Let’s edit smb.conf file and replace it with these contents
# vi /etc/samba/smb.conf
smb.conf file contents
======================
[global] workgroup = WORKGROUP # Workgroup Name comment = Samba File Server of www.broexperts.com # Comments hosts allow = 192.168.0. 127. # Allowed Networks security = user os level = 64 encrypt passwords = yes preferred master = yes domain master = yes wins support = yes # Availabe Shares [MyData] comment = MyData Share for Windows Clients path = /data/mydata # This Directory Should be present read only = no browseable = yes valid users = h.haider
save & exit
Start Service
# service smb start
start on boot
# chkconfig smb on
We use a valid user account of samba server for authentication.
create user = h.haider
# useradd h.haider
Generate samba password of h.haider user
# smbpasswd -a h.haider
Now you can Access this share from windows machine using h.haider user.
