Some time ago, I’ve published a way to configure a sharing between Linux and Windows, without needing to authenticate. That model worked well with Debian 6, but with Debian 8, I had to change Samba configuration a little bit.
To have the same effect of that old configuration, this time we have to change /etc/samba/smb.conf with below settings:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[global] workgroup = WORKGROUP netbios name = WEBSERVER security = user map to guest = Bad User guest ok = yes guest account = heitor map archive = no #===== Share Definitions ===== [public_html] comment = WebServer Root path = /home/heitor/public_html public = yes browseable = yes writeable = yes read only = no force user = heitor |
Add the user that is defined on guest account and force user to Samba, with the command:
1 |
sudo smbpasswd -a heitor |
This way, the sharing will keep working as it was before!