UFW and Samba
Today I have another post for you about Samba. Today I found that people couldn't actually access the samba shares I set up (I must have forgotten to test them). They were getting a weird "The Network Path was not found" error. Strange. After looking into it, I found that I didn't unblock the right ports in ufw. You see, Samba operates using two listeners, one called
smbd, and the another called
nmbd. I had forgotten to read the output of
netstat -peanut correctly, and I missed a few ports.
For future reference (and for others having the same problem), here's the list of commands you need to enter in order to use shared folders with Samba correctly:
sudo ufw allow 139/tcp sudo ufw allow 445/tcp sudo ufw allow 137/udp sudo ufw allow 138/udp
Hopefully it doesn't take you as long to fix your problem as it did mine...!