Samba configuration
• Andrew Tridgell wrote a SMB [server message block]
client and server that he called Samba.
• Samba is a collection of Linux tools that allow you to
communicate with windows systems over a network.
• Helps in browsing the network resources using host
names by name resolution instead of DNS.
• File and printer sharing is probably the most
attractive samba feature.
Samba Service Profile
• Packages : samba, samba-common, samba-
client
• Daemons : smbd, nmbd (NetBIOS nameserver)
• Config file : /etc/samba/smb.conf
• Ports : 137 (nmbd), 138(smbd)
Samba configuration
rpm -q queries
for the packages
installed.
Samba configuration
rpm -ivh along with
package name installs
the package.
Samba configuration
/etc/samba/smb.conf is the
configuration file.
Samba configuration
The
Thesmb.conf
windowsfile
domain
is opened
name now
or the to
workgroup
nameedit.
can be given.
Samba configuration
This is the default screen
showing the default network
for accessing.
Samba configuration
The screen shows that the
network 192.168.0 and
192.168.1 can access the samba
server.
Samba configuration
At the end of the smb.conf file,
shows the example of how to
share the linux files.
Samba configuration
The tmp directory is shared to
public(full access) as well as
write the file.
The var directory is given as the
user joe only can access the file
from any windows operating
system.
The previous example is used
here as such like tmp and var
directory.
Samba configuration
Password
Sambaisuser
set name
for accessing
and
from the windows
password operating
are stored in
system.
/etc/samba/smbpasswd file.
Samba configuration
The service for the samba
configuration is started by
restarting.
Samba configuration
smbclient -L shows the shared
directory of samba server.
Samba configuration
The user joe gets logged in
by giving password for This command helps to
authentication. ls command confirm whether the
is used to list the files configuration is done
shared. properly.
Samba configuration
The screen viewing the listed files.
mget command copy the file from
shared directory to our machine.
Samba configuration
testparm command is
used to show the shared
directory of the samba
server.
Hitting enter will show
the detailed shared
directory.
Samba configuration
Here the screen shows the
simulation of the samba
configuration.