Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active November 20, 2018 08:58
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 jadia/1c829842937e8cecf611079943117b6e to your computer and use it in GitHub Desktop.
Save jadia/1c829842937e8cecf611079943117b6e to your computer and use it in GitHub Desktop.
Locally share folder in Ubuntu 18.04

Sharing a folder in Ubuntu 18.04

sudo apt-get install samba
sudo apt-get install samba-common-bin

Back up and edit config file

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo vim /etc/samba/smb.conf

Append this config file and add the following lines:

[hdd]
comment = 1TB shared HDD
path = /mnt/hdd
writeable = Yes
browsable = Yes
public = Yes
force user = nitish

change nitish to your username.

You can goto \192.168.1.150\hdd to view folder contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment