Configure SAMBA Server on your Red Hat Enterprise Linux5
(Part-1)
Configuration
Samba as a Stand-alone Server on RHEL5
Samba Server is used to share resources from windows to
Linux & also Linux to windows. Samba use CIFS file system which use SMB
protocol.
- File & Printer Sharing
- Name Resolution
- Browsing
- Authentication & Authorization
Basic
Configuration
Step-1:
Check samba rpm package is installed
or not by following this command:
[root@srv1 ~]# rpm -qa | grep –i samba* or
[root@srv1 ~]#
rpm
–qa samba*
samba-common-3.0.33-3.14.el5
samba-swat-3.0.33-3.14.el5
samba-3.0.33-3.14.el5
samba-client-3.0.33-3.14.el5
system-config-samba-1.2.41-5.el5
If not installed then install the
packages using yum command
[root@srv1 ~]# yum Install samba* -y
Step-2:
Check and Configure the Network Card:
[root@srv1 ~]# vi
/etc/sysconfig/network-scripts/ifcfg-eth0
(Modified File):
#Broadcom Corporation Net link BCM57875 Gigabyte Ethernet
PCI Express
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0C:29: EB: B2: CA
ONBOOT=yes
TYPE=Ethernet
PEERDNS=no
USERCTL=no
IPV6INIT=no
IPADDR=210.207.201.8
NETMASK=255.255.255.0
NETWORK=210.207.201.0
BROADCAST=210.207.201.255
Step-3: After complete the NIC configure you have to change the host
name by following this
command:
[root@samba ~]# vi
/etc/sysconfig/network
(Modified File):
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=srv1
After changing you have to
reload/restart the NIC(eth0) card by following command:
[root@srv1 ~]# ifdown
eth0
[root@srv1 ~]# ifup eth0
[root@srv1 ~]# service
network restart