Configuring Samba server
Step 1: yum install samba
# cd /etc/samba (check directory by Default with OS is available )
Step 2: take the back up smb.conf
#cp smb.conf smb.conf_Backup
Step 3: edit the samba file.
# vi smb.conf
#======================= Global Settings =====================================
[global]
# ----------------------- Network Related Options -------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
# workgroup = MYGROUP (Change name to WORKGROUP)
workgroup = WORKGROUP (this name is belong to windows client group or domain name)
server string = Samba Server Version %v
# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff
[Samba-(Linux Directory)]
path = /sambawindows
public = yes
writable = yes
printable = no
Step 4: create directory for sharing
# mkdir /sambawindows
Step 5: create a user for purpose of windows sharing directory
# useradd –d /home/user1 srioct1
Step 6: password for samba user1
#smbpasswd –a srioct1
Step 7: to check the users for samba
#pbedit –L
Step 8: to delete user using below command.
# pdbedit –x –u
Step 9: to see the configured shared path & accesss
#testparm
Step 10: Start service smb &nmb
# service smb start
# service nmb start
Step 11: check the firewall to be disabled.
#system-config-firewall-tui
Check the status of firewall.
#getenforce
Disable the firewall.
#setenforce 0
# cat /etc/samba/smb.conf