Created
December 15, 2019 19:26
-
-
Save linuxoracledev/28713c86ed871d6c3b344958005b4460 to your computer and use it in GitHub Desktop.
How to Install and Configure Samba on Ubuntu 18.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install samba | |
sudo apt install samba | |
#Verify SAMBA installation | |
sudo systemctl status nmbd | |
#create a Samba directory | |
sudo mkdir /samba | |
##Configuring Samba Shares | |
#Make a backup of the configuration file | |
sudo cp /etc/samba/smb.conf /etc/samba/smb_backup.conf | |
#Edit the configuration file | |
sudo nano /etc/samba/smb.conf | |
Add the following line to the bottom of the smb.conf file. | |
#[samba-share] | |
#comment = Samba on Ubuntu | |
#path = /samba | |
#read only = no | |
#browsable = yes | |
#Press Ctrl+O to save and Ctrl+X to exit. | |
##Setting up Samba User Account | |
#set up a user account for Samba | |
sudo smbpasswd -a username | |
#Restart Samba Service | |
sudo systemctl restart smbd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment