Samba service

Samba is an implementation of the SMB/CIFS networking protocol which is mostly
used on computers running Microsoft Windows. It is basically a way of allowing
a Windows computer to connect to Linux systems and access their shared files
or printers. It is not supported by Windows, and was originally developed by
Andrew Tridgell.

If you want to share media from Linux with other Windows computers on your
network, Samba is the best software option.

Installing and configuring Samba
You need to install Samba and a common library used by Samba using the following
command line:
sudo apt-get install samba samba-common-bin
You can then navigate to /etc/samba and edit the smb.conf file. On a private
network for personal use, you may skip any steps that require the use of passwords
to mount network shares. In an exposed or production environment, always
use authentication.

If you personally do not like to put security on internal network shares that is
perfectly safe, since these files cannot be accessed from the Internet, you may just
want to browse your network freely and copy or move files around without the
extra headache of entering passwords.

By default, Samba is set for anonymous (unauthenticated) access. To change this,
scroll down and uncomment the line security = user by removing the preceding #.
This will tell Samba to authenticate against the users that you have created.

For demonstration purposes, create a system user to access Samba. We will quickly
create a user for the purpose of demonstration, as there is an extra step to add the
user to the Samba authentication list. The following command line snippet is an
example of creating a system user to access Samba:

useradd bond007 –m –G users
passwd bond007
smbpasswd –a bond007 

No comments:

Post a Comment