You are on page 1of 26

SAMBA

DAY-27
Bridge between UNIX and Windows Networks
File Server
Authentication Server
Runs under UNIX, Solaris, Linux, FreeBSD, and more!
What is Samba?
Andrew Tridgell, the creator of the Samba suite.
NIS CLIENTS
NIS SERVER
WIN 9X CLIENTS
WINNT PDC
NIS SERVER
NIS CLIENTS WIN 9X CLIENTS
WINNT PDC
S
A
M
B
A
NIS SERVER
NIS CLIENTS WIN 9X CLIENTS
S
A
M
B
A
SAMBA SERVER
Configuring SAMBA
SAMBA SERVER
Zoom40
192.168.10.240
Workgroup=zoom
samba is a freeware You can download it from
www.sunsolve.sun.com
www.sunfreeware.com
www.samba.org
SAMBA
SAMBA is not available in solaris by default.
We have to download a 3
rd
party package from Internet.
PACKAGE samba.2.5.sol8.intel.tar.gz
# gzip dv samba.2.5.sol8.intel.tar.gz
# tar xvf samba.2.5.sol8.intel.tar
#pkgadd d samba.2.5.sol8.intel
/usr/local /samba /bin
/usr/local /samba /lib
/usr/local /samba /var
/usr/local/samba
The above samba package will install under
CONFIGURING Samba SERVICE
The main configuration file for samba is smb.conf
located under
# cd /usr/local/samba/lib
Daemon smbd & nmbd

# cd /usr/local/samba/lib
#vi smb.conf
workgroup = zoom
server string = ZOOM40 Samba Server
encrypt passwords = yes
smb passwd file = /usr/local/samba/lib/smbpasswd
domain master = yes
preferred master = yes
os level = 33
domain logons = yes

G
L
O
B
A
L
[OPT]
comment = General Share
path = /opt
browseable = yes
writable = yes

[CDROM]
comment = General Share
path = /cdrom/cdrom0
browseable = yes
readable = yes

:wq!
# mkdir /usr/local/samba/var/locks
Creating Samba User
# useradd d /export/home/solaris m solaris
#passwd solaris
New Password:
Confirm Password:
#
Converting the user to samba user
# cd /usr/local/samba/bin
# ./smbpasswd a solaris
New SMB password:
Confirm SMB password:
# touch /usr/local/samba/lib/smbpasswd
START / STOP Samba Service
# cd /usr/local/samba/bin
#./smbd stop | start
#./nmbd stop | start
#pgrep smbd
#pgrep nmbd
Testing Samba Configuration
# cd /usr/local/samba/bin
# ./testparm
Integrating SAMBA Clients
Configuring Windows 9X Clients
SWAT
Samba Web Administration Tool
# vi /etc/services
swat 901/tcp
:wq!
# vi /etc/inetd.conf
swat stream tcp wait.400 root /usr/local/samba/bin/swat swatd
:wq!
Restart Internet Services
# cd /etc/init.d
# ./inetsvc stop | start
SAMBA
netbios-ssn stream tcp nowait.400 root /usr/local/samba/bin/smbd smbd netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd

You might also like