Final Project SAMBA Server
Final Project SAMBA Server
SAMBA Server
Team: Denise Hughes & Erik Kridakara
Class: IT 298 – Linux Installation
Instructor: D.C. Shoemaker
Contents
1. What Is Samba?
2. The Benefits of Samba
3. Where did it come from?
4. Samba Daemons
5. Samba Commands
6. Installing Samba
7. Configuring Samba
8. Starting Samba
9. Linux Views
10. Windows Views
11. Conclusion
What is Samba?
Samba is a suite of Unix applications that speak
the SMB (Server Message Block) protocol. Many
operating systems, including Windows and OS/2,
use SMB to perform client-server networking. By
supporting this protocol, Samba allows Unix
servers to communicate with the same
networking protocol as Microsoft Windows
products.
The Benefits of Samba
A Samba-enabled Unix machine can masquerade
as a server on your Microsoft network and offer
the following services:
smbd
The smbd daemon is responsible for managing the shared resources
between the Samba server machine and its clients. It provides file, print,
and browser services to SMB clients across one or more networks. smdb
handles all notifications between the Samba server and the network
clients. In addition, it is responsible for user authentication, resource
locking, and data sharing through the SMB protocol.
nmbd
The nmbd daemon is a simple nameserver that mimics the WINS and
NetBIOS name server functionality. This daemon listens for nameserver
requests and provides the appropriate information when called upon. It
also provides browse lists for the Network Neighborhood and participates
in browsing elections.
SAMBA Commands
Samba comes with a small set of Unix command-line tools:
smbclient
An FTP-like Unix client that can be used to connect to Samba shares
smbtar
A program for backing up data in shares, similar to the Unix tar command
nmblookup
A program that provides NetBIOS over TCP/IP name lookups
smbpasswd
A program that allows an administrator to change the encrypted passwords used by Samba
smbstatus
A program for reporting the current network connections to the shares on a Samba server
testparm
A simple program to validate the Samba configuration file
testprns
A program that tests whether various printers are recognized by the smbd daemon
Installing Samba
Binary packages of Samba are included in
almost any Linux or UNIX distribution.
There are also some packages available at
the main Samba site at www.samba.org
Installing: Our system
We chose Slackware based distro called
Vector Linux
printing = cups
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
lanman auth = no
client plaintext auth = no
client lanman auth = no
ntlm auth = no
client use spnego = no
encrypt passwords = no
use spnego = no
security = share
#================== Share Definitions ===============
[home]
comment = Home Directories
read only = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes
[tmp]
comment = Temporary file space
path = /tmp
read only = no
guest ok = yes
[slackers]
comment = Public Stuff
path = /home/slackers
guest ok = yes
read only = no
write list = @slackers
# Two private directories
[erik]
comment = Erik's Service
path = /usr/somewhere/private
valid users = erik
read only = no
[denise]
comment = Denise's home folder
path = home/denise
valid users = denise
# A public directory, read/write to all users.
[public]
path = /usr/somewhere/public
guest ok = yes
guest only = yes
read only = no
[shared]
comment = denise & erik & pookie
path = /usr/somewhere/shared
valid users = pookie erik denise
read only = no
create mask = 0765
# End of file
Starting Samba
Starting the Samba Daemons
• By hand
• From inetd
Starting the Daemons by Hand
# /usr/local/samba/bin/smbd –D
# /usr/local/samba/bin/nmbd –D
# /usr/local/samba/bin/smbd –D
# /usr/local/samba/bin/nmbd –D