Share folders in Ubuntu

open terminal and run this command

sudo edit '/etc/samba/smb.conf'

Then add these lines

[Folder Name to be displayed in network]
path = /path/to/folder
browsable = yes
guest ok = no
read only = no
create mask = 0755

Then in terminal run these lines

sudo smbpasswd -a username

instead username write your account you want to login through network, it will ask you for the password you want to use, then re-enter to validate.

Then you need to restart samba

sudo service smbd restart
sudo service nmbd restart

Thats it.

Leave a Reply

Your email address will not be published. Required fields are marked *