Skip to content

Instantly share code, notes, and snippets.

@linuxoracledev
Created December 15, 2019 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxoracledev/28713c86ed871d6c3b344958005b4460 to your computer and use it in GitHub Desktop.
Save linuxoracledev/28713c86ed871d6c3b344958005b4460 to your computer and use it in GitHub Desktop.
How to Install and Configure Samba on Ubuntu 18.04 LTS
#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