0% found this document useful (0 votes)
316 views

Samba Server: Vanshita Kashyap

Samba server allows files and printers to be shared between Windows and Linux systems. It provides file and printer sharing services to Windows clients from Linux servers. To set up a Samba server, you must install Samba and related packages, enable the SMB service, configure the smb.conf file to define shares, and add Linux users as Samba users. This allows files and folders on the Linux server to be accessed from Windows clients over the network.

Uploaded by

Vanshita kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
316 views

Samba Server: Vanshita Kashyap

Samba server allows files and printers to be shared between Windows and Linux systems. It provides file and printer sharing services to Windows clients from Linux servers. To set up a Samba server, you must install Samba and related packages, enable the SMB service, configure the smb.conf file to define shares, and add Linux users as Samba users. This allows files and folders on the Linux server to be accessed from Windows clients over the network.

Uploaded by

Vanshita kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

SAMBA SERVER

VANSHITA KASHYAP
What is Samba Server in Linux?
 Samba server is used to share files between windows and
linux.
 The Samba server can be defined as one of the most
powerful server in Linux that enables us to connect
various resources like printers and files with several
operating systems.
 The main purpose of this server is to share the files or the
printers so that they could be used efficiently. ...
Example how samba server is
implemented-

Windows Linux
A man is using windows and want to share some kind of file to a person using
linux operating system then he is able to share the file between each other with
the help of samba server.
This means you can use a Linux server to provide file sharing, printing, and
other services to other non-native Linux clients such as Microsoft Windows.
Prerequisites to install samba
server-
 We need YUM server to install samba server.

What is YUM ?
The Yellowdog Updater, Modified (yum) is an open-source command-line
package-management utility for Linux operating systems using the
RPM Package Manager.
Yum server configuration

 First we have to mount DVD, for mounting DVD we have to make a directory
by using command mkdir dvd.
 After making directory mount DVD by using command mount /dev/cdrom
/dvd/.
 Now we create repo by using command vi /etc/yum.repos.d/local.repo

Then we write as follows-


 Now we will clean cache by using command yum clean cache.

Now we check repository to see our yum server is configured or not by


using command yum repolist.
 Now we check yum server is working properly
or not by installing a software.
Samba server configuration
 There is a command used for the installation of samba server i.e.,
yum install samba* -y.
It has total 62 packages.

Complete!!
 Now we enable service by using command systemctl enable smb.
 Now we start service by using command systemctl start smb.
 Now we stop firewall by using command systemctl stop firewall.
 Now we create directory in which we want to keep our share file by
using command mkdir window.
 After creating directory we give it full permission by using command
chmod 777 window.
 Now we create and add user whom we want to give access by using
command useradd. Here I am going to create two users i.e., tom and
dick.
 Now we make these users to samba users so that they can access
samba server by using command smb passwd –a tom and smb passwd
–a dick.
 Now we do samba file configuration where file is located by using
command vim /etc/samba/smb.conf
 We get screen like below then we add a file.

After adding save and exit from there.


 Now we restart smb services .

 Now we check it is installed properly or not by using command


testparm.
 We use chcon –R –t samba_share_t /window because we are not
giving samba directories by default we are giving directory named
window.

After that we will check ip by using command ip a


 Now we can access files from others no matter they have windows
operating system or linux operating system.
 We know that our ip is 192.168.43.179 so go in run window in type
this ip as follows.
 After entering the ip we get the screen like below.

 Here we have to enter user name and password which we created


previously.
 Now we can see below that we get access.

 Now we can go inside window and make any folder, file etc.
 We can make a file in notepad also as seen below.
 If we want to see by that what changes has done by others then-

You might also like