Arvind Kalyan
ceh.arvind@gmail.com
Linux Basics
Samba support Microsoft Access Control Lists.
Main configuration file of Samba server is /etc/samba/smb.conf
Samba Web Administration tool (SWAT) is a GUI base configuration tool for Samba
Serveravailable from RHEL 6
In Linux SAMBA provides the following services:
User Authentication and authorization
File and printer sharing
Name resolution
Browsing
Provide network shares to specific clients.
RPM required for Samba Server
RPM
samba
samba-client
samba-swat
samba-winbind
Description
Base RPM for Samba Server
Base RPM for Samba Client
GUI interface for Samba configuration
Allow interoperability between Linux and Window
On samba server following RPM are required
samba
samba-common
samba-winbind
Check necessary rpm
Rpm qa samba
installing RPM form RHEL 6 disk. Mount RHEL 6 disk in media folder and change directory to Package
folder
Cd media/rhcl_6.1\x86_64\ Disc\ 1/Packages/
Rpm ivh nodeps samba-3.5*.*.rpm
#iptables -A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
#iptables -A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
#iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
Arvind Kalyan
ceh.arvind@gmail.com
Linux Basics
#iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
Command smbpasswd -a can be used to add a user to the password database under /etc/samba/ for
SAMBA authentication. Set up Samba users with the smbpasswd command.
Smbpasswd
smbuser1
Create a smbgroup and add smbuser3 and smbuser4 users
Groupadd smbgroup
Usermod -G smbgroup smbuser3 smbuser4
Now open main configuration file of Samba
Vi /etc/samba/samba.conf
It would be same on network for seamless connectivity
Now navigate to Share Definitions section By default Samba automatically share the home
directory of the logged-in user which is define in the first four lines of this section.
browseable = no limit user to his own home directory. Samba reads home directory information
from /etc/passwd file so you need not to specify the home directories path.
On Server create a /sharedata folder. This folder is created from root user so our users will not be able
to write in this folder. Change its permission 777. Configure SELinux Boolean . Now open the smb.conf
file
Arvind Kalyan
ceh.arvind@gmail.com
Linux Basics
This share of /sharedata will share a common location where user can download / upload / read
the files. In this end of file add following stanza and save the file
# Common location for people to share files [sharedata]
comment = common location file sharing
path = /sharedata
read only = no public = yes
Restart the smb service
Chk on windows after creating workgroup\