SAMBA SERVER IN LINUX

Submitted by:
Veeral Bhateja
+91-8741810758
What is Linux?
• Linux is, in simplest terms, an operating
system. It is the software on a computer
that enables applications and the
computer operator to access the devices
on the computer to perform desired
functions.
• Linux is an operating system, a large
piece of software that manages a
computer. It is similar to Microsoft
Windows, but it is entirely free. The
accurate name is GNU/Linux but "Linux"
is used more often.
• In Linux there are many hundreds of
free, high quality applications you can
find, install and uninstall neatly and
easily.
• Using the open source code of the
Linux kernel, people have been
developing operating systems based
on the Linux kernel.
• Linux has provided us some of the best
servers to share every possible
transactions. One of them is Linux
Samba Server.
What is Samba ?
• Samba is an Open Source Suite, that
provides seamless file and print
services to SMB/CIFS clients.
• Samba is freely available.

• With Samba, you can share a Linux
file system with Windows 95, 98, 2000
and NT and vice versa.
• Samba allows Windows clients to
access resources on Linux computers.
• You can also share printers connected to
either Linux or a system with Windows
95, 98, 2000 or NT.
• Samba enables a Linux or Unix server to
function as a file server for client PCs
running Windows software.
What is SMB?
• SMB stands for – Server Message
Block.
• It is a protocol by which a lot of PCrelated machines share files and
printers and other information such
as lists of available files and printers.
• Operating systems that support this
natively include Windows
NT, OS/2, and Linux.
SMB Components
• smbd daemon: This provides the file and
print services to SMB clients such as
Windows NT or other Linux or Unix clients.
• smb.conf: This is the configuration file for
smbd.
• nmbd daemon: This daemon provides
NetBIOS name serving and browsing
support.

• smbpasswd: This allows the user to change
the password used for their SMB sessions.
• smbclient: This is an smb client program
that implement a simple FTP-like client on
a Linux or Unix box.
• smbmount: This mounting program
enables mounting of server directories on a
Linux or Unix box.
• smbstatus: This programs lists the current
Samba connections.
• SWAT: Swat allows a Samba administrator
to configure the smb.conf file via a Web
browser.
What is CIFS?
• CIFS – Common Internet File System is a
protocol that is basically an updated SMB.
Samba configuration
• Samba configuration file located
at /etc/samba/smb.conf.
• In this file main section is Global where you
can define all parameters.
• Example:
[global]
workgroup = debian
NetBIOS name = debianserver
server string = %h server (Samba %v)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
Samba Service Profile
• Packages: samba, sambacommon, samba-client
• Daemons: smbd, nmbd (NetBIOS
name server)
• Config file : /etc/samba/smb.conf
• Port: 137 (nmbd), 138(smbd)
How to configure Samba?
• First we check there is samba server package is
installed or not. We find package samba* not
installed.
We install samba* package.
rpm -ivh along with package name installs the package.
Then we open the samba server configuration
file. Command: # vim /etc/samba/smb.conf.
In the last page of configuration file, we
make some changes here.
Then we create a valid user who has been shared
the directories.
Restart the services
Now we try to connect the user. Command: #
smbclient//<IP Adress>/<directory name> -U
<username>
The user gets logged in by giving
password for authentication
ls command is used to list the files
shared.
The screen viewing the listed files.
mget command copy the file from shared
directory to our machine.
testparm command is used to show the
shared directory of the samba server.

Hitting enter will show the detailed
shared directory.
Presentation on samba server
Presentation on samba server

Presentation on samba server

  • 1.
    SAMBA SERVER INLINUX Submitted by: Veeral Bhateja +91-8741810758
  • 2.
    What is Linux? •Linux is, in simplest terms, an operating system. It is the software on a computer that enables applications and the computer operator to access the devices on the computer to perform desired functions. • Linux is an operating system, a large piece of software that manages a computer. It is similar to Microsoft Windows, but it is entirely free. The accurate name is GNU/Linux but "Linux" is used more often.
  • 3.
    • In Linuxthere are many hundreds of free, high quality applications you can find, install and uninstall neatly and easily. • Using the open source code of the Linux kernel, people have been developing operating systems based on the Linux kernel. • Linux has provided us some of the best servers to share every possible transactions. One of them is Linux Samba Server.
  • 4.
    What is Samba? • Samba is an Open Source Suite, that provides seamless file and print services to SMB/CIFS clients. • Samba is freely available. • With Samba, you can share a Linux file system with Windows 95, 98, 2000 and NT and vice versa. • Samba allows Windows clients to access resources on Linux computers.
  • 5.
    • You canalso share printers connected to either Linux or a system with Windows 95, 98, 2000 or NT. • Samba enables a Linux or Unix server to function as a file server for client PCs running Windows software.
  • 6.
    What is SMB? •SMB stands for – Server Message Block. • It is a protocol by which a lot of PCrelated machines share files and printers and other information such as lists of available files and printers. • Operating systems that support this natively include Windows NT, OS/2, and Linux.
  • 7.
    SMB Components • smbddaemon: This provides the file and print services to SMB clients such as Windows NT or other Linux or Unix clients. • smb.conf: This is the configuration file for smbd. • nmbd daemon: This daemon provides NetBIOS name serving and browsing support. • smbpasswd: This allows the user to change the password used for their SMB sessions.
  • 8.
    • smbclient: Thisis an smb client program that implement a simple FTP-like client on a Linux or Unix box. • smbmount: This mounting program enables mounting of server directories on a Linux or Unix box. • smbstatus: This programs lists the current Samba connections. • SWAT: Swat allows a Samba administrator to configure the smb.conf file via a Web browser.
  • 9.
    What is CIFS? •CIFS – Common Internet File System is a protocol that is basically an updated SMB.
  • 10.
    Samba configuration • Sambaconfiguration file located at /etc/samba/smb.conf. • In this file main section is Global where you can define all parameters. • Example: [global] workgroup = debian NetBIOS name = debianserver server string = %h server (Samba %v) log file = /var/log/samba/log.%m max log size = 1000 syslog = 0
  • 11.
    Samba Service Profile •Packages: samba, sambacommon, samba-client • Daemons: smbd, nmbd (NetBIOS name server) • Config file : /etc/samba/smb.conf • Port: 137 (nmbd), 138(smbd)
  • 12.
    How to configureSamba? • First we check there is samba server package is installed or not. We find package samba* not installed.
  • 13.
    We install samba*package. rpm -ivh along with package name installs the package.
  • 14.
    Then we openthe samba server configuration file. Command: # vim /etc/samba/smb.conf.
  • 15.
    In the lastpage of configuration file, we make some changes here.
  • 16.
    Then we createa valid user who has been shared the directories.
  • 17.
  • 18.
    Now we tryto connect the user. Command: # smbclient//<IP Adress>/<directory name> -U <username>
  • 19.
    The user getslogged in by giving password for authentication
  • 20.
    ls command isused to list the files shared.
  • 21.
    The screen viewingthe listed files. mget command copy the file from shared directory to our machine.
  • 22.
    testparm command isused to show the shared directory of the samba server. Hitting enter will show the detailed shared directory.