How To Install Samba In Ubuntu 14.04 Using Terminal
1. Overview
A Samba file server enables file sharing across unlike operating systems over a network. It lets you access your desktop files from a laptop and share files with Windows and macOS users.
This guide covers the installation and configuration of Samba on Ubuntu.
What y'all'll learn
- How to set upwardly a Samba file server
- How to share files across a local network
What yous'll demand
- Ubuntu xvi.04 LTS
- A Local Surface area Network (LAN) to share files over
If you have everything ready, allow's dive direct into the installation procedure on the adjacent step!
Originally authored past Aden Padilla.
2. Installing Samba
To install Samba, nosotros run:
sudo apt update sudo apt install samba We can check if the installation was successful by running:
whereis samba The following should exist its output:
samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.eight.gz 3. Setting up Samba
At present that Samba is installed, we need to create a directory for it to share:
mkdir /home/<username>/sambashare/ The command above creates a new folder sambashare in our habitation directory which we will share later.
The configuration file for Samba is located at /etc/samba/smb.conf. To add together the new directory as a share, nosotros edit the file past running:
sudo nano /etc/samba/smb.conf At the lesser of the file, add together the following lines:
[sambashare] comment = Samba on Ubuntu path = /home/username/sambashare read but = no browsable = yes Then press Ctrl-O to salvage and Ctrl-X to leave from the nano text editor.
What we've merely added
-
- comment: A cursory description of the share.
-
path: The directory of our share.
-
read only: Permission to modify the contents of the share folder is only granted when the value of this directive is
no. -
browsable: When set to
yes, file managers such every bit Ubuntu's default file manager will list this share under "Network" (it could also appear as browseable).
At present that we take our new share configured, save it and restart Samba for information technology to take upshot:
sudo service smbd restart Update the firewall rules to allow Samba traffic:
sudo ufw allow samba Source: https://ubuntu.com/tutorials/install-and-configure-samba
Posted by: heathyouds1976.blogspot.com

0 Response to "How To Install Samba In Ubuntu 14.04 Using Terminal"
Post a Comment