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.
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.
Step 3: Configure Samba.
- Configure with the Gui Desktop.
- 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.