📅 2014-Jul-07 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ samba, smb ⬩ 📚 Archive
This post shows the basic steps to share a directory over the network using SMB on the commandline. If you prefer a GUI program, see the post about using Samba Server Configuration tool.
$ sudo apt install samba
joe
:$ sudo smbpasswd -a joe
$ sudo chown joe /path/to/share
$ sudo chown :joe /path/to/share
$ sudo vim /etc/samba/smb.conf
[joe-share]
path = /path/to/share
available = yes
valid users = joe
read only = no
browseable = yes
public = yes
writable = yes
$ sudo service smbd restart
or
$ sudo service samba restart
192.168.0.10
, then type this into the address bar of Nautilus: smb://192.168.0.10/joe-share
. You will be asked to provide the username and password to access the share.Tried with: Ubuntu 14.04