Samba stopped working

dmpm

Member
Dec 29, 2023
50
2
8
I edited /etc/samba/smb.conf and added a few shares, and from my Windows machine I was able to open the Run box and type \\10.10.55.198 and it opened a folder in Explorer showing all the shares. I wasn't able to login to the ones where I hadn't set 'guest ok = yes' regardless of which username I used, but the couple of folders that I'd enabled guest access for (media and software) were browsable.

Then I tried to set the media folder to only allow access to certain users and to be writeable by using 'valid users =' and restarted smbd (which I'd done many times before) and now I can't access any of the shares, even if I comment out the entry for media and restart smbd again. I also tried rebooting the PVE server, but when I try to access \\10.10.55.198 now I just get an error "Windows cannot access \\10.10.55.198"

Before it would show the shares without prompting for a username and password, it was only when I tried to access one of them that didn't have guest access enabled that it would prompt for credentials, so I don't understand why it's stopped working. I checked whether there are any saved connections with 'net use * /del' but that confirms "There are no entries in the list".

How do I get Samba working again?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!