LIVE
Loading live headlines…
Home Trending World Technology Entertainment Gaming Sports Music Science Lifestyle Business About Contact
c/linux4noobs by u/DigDoug 2w ago

Is it possible to not have Samba ask for a password in NixOS?

8 upvotes 0 comments
I've been trying to set up a Samba share on my desktop, which I've done successfully many times on other distros, but for whatever reason, the NixOS version of Samba sets "security = USER" by default. Since it's on my own network and I have no ports exposed to the internet, I'd prefer to not have to bother with a password if I can.

I have things like "map to guest = Bad User" and "guest ok = yes" set. In fact, I ran `testparm` on my server, which I can access without a password, and my desktop, and the only difference was "security = user", a setting that stopped login as root (I'm at work at the moment so I can't check exactly what it was), and a link to the file where passwords are stored.

I disabled the firewall and tried putting "security" = "" in my configuration.nix, which stops "security = user" showing up in `testparm`. When I do this, I can access smb://$DESKTOP, and it shows the folder I want shared, but when I click it, it says it doesn't exist. I have double checked that the path to the drive I want to share is correct.

Has anybody encountered this? Did you manage to fix or bypass it? Thanks in advance.
Open discussion