How to Easy Install & Configure Samba on Ubuntu 16.04

BY Span 2016.Nov 9th

Step 1: Create the ‘Folder’ you want to share.

  • For example: mkdir under the local user directory.
span@span-HP-ProBook-640-G1:~$ mkdir ~/Share
span@span-HP-ProBook-640-G1:~$ cd Share/
  • Or new the folder with the Gui Desktop.
    New_Folder

Step 2: Install the ‘Smaba’ on the Ubuntu.

  • Use the apt install.
span@span-HP-ProBook-640-G1:~/Share$ sudo apt install samba samba-common
  • Or install the service with the Gui Desktop.
    Local_Network_ShareInstall_Service

Step 3: Configure Samba.

  1. Configure with the Gui Desktop.

Configure

  1. Configure with the shell command.
span@span-HP-ProBook-640-G1:~/Share$sudo smbpasswd -a span
New SMB password:
Retype new SMB password:
Added user span.
span@span-HP-ProBook-640-G1:~/Share$sudo smbpasswd -e span
Enabled user span.

PS: Must be the existed user, if not, create the user firstly.