with ubuntu 20.04 right after operating system installation finished
- the following packages should be installed (Note: no additional packages required):
sudo apt-get install libnss-winbind
sudo nano /etc/nsswitch.conf
- modify the line (wins must be added)
hosts: files wins mdns4_minimal [NOTFOUND=return] dns
- run the command to start the service
sudo service winbind start
- or restart winbind-service
sudo service winbind restart
If "ping host_name_of_windows_machine" does not work
sudo nano /etc/samba/smb.conf
- make sure workgroup-name is correct
[global]
...
workgroup=WORKGROUP
...
Click to show the picture
ufw allow from 192.168.59.0/24 to any app Samba