CentOS – Samba Service (PART 16)

Lab 16: Samba

The DNS system is on the Linux server and NOT on the Domain Controller.
In this lab, we present another server called DC2012 and it is promoted to be a Domain Controller.

1/ Samba
SAMBA supports file, print sharing, and using SMB protocol (IBM)
Samba use these protocols
– smbd = TCP 139/445
– nmbd = UDP 137/138

On the Samba server, enter the command

ifconfig

Ensure that the IP address is 10.0.0.10.

On the DC2012, enter the command

ipconfig 

to ensure that its IP is 10.0.0.11

On Samba server, check all installed Samba packages

rpm –qa | grep samba

2/ Install Samba Client:
Mount CD

rpm –ivh /media/Packages/samba-client…rpm

Check again:

rpm –qa | grep samba

3/ Configure Samba

vi /etc/samba/smb.conf
:set nu
/backend
passdb backend = smbpasswd
:x
service smb start
(Somehow service failed to start, I had to remove it using rpm –remove samba* and reinstall all samba packages and dependancies from the CD).
chkconfig smb on

From DC2012
ping 10.0.0.10
From Linux, ping 10.0.0.11

Check status of SMB

service smb status
netstat -antp