#!/linuxSucks/Install and setup Samba in Debian/Ubuntu
Jul 12, 2019Make sure you system is update
sudo apt update && sudo apt dist-upgrade
Now install samba:
sudo apt-get install samba samba-common-bin
Set a password for your user in Samba:
sudo smbpasswd -a user_name
When is done, open smb.conf:
sudo nano /etc/samba/smb.conf
At the end of the file add this configuration with path of your folder:
[share] (Name to show in your network)
Comment = Shared folder (Short description of your folder)
Path = /share (Path of your folder /XXX/XXX/XXX)
Browseable = yes
Writeable = Yes
Only guest = no
Create mask = 0777
Directory mask = 0777
Public = yes
Guest ok = yes
Valid users = user_name
Read only = no
Save all you changes and restart samba:
sudo service smbd restart