Samba Server: Vanshita Kashyap
Samba Server: Vanshita Kashyap
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
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.