Ubuntu – Nautilus wants a password when I try connecting to a public Windows share

gvfssambawindows 7

There is a computer on my network running Windows 7 Professional with a bunch of shared folders and printers available on the default WORKGROUP domain. There is no password for any of these shares and they can be happily accessed from Windows on any other computer on the network. (And all the Windows computers can access Ubuntu's Samba shares).

If I use the Network place in Nautilus, the computer itself is visible under smb://workgroup/. However, when I try to mount that, Nautilus asks me for a password! With no other option, I entered the username and password for the one user on the machine. It tried to do something for a second then asked again (ad infinitum).

Trying to add a printer with CUPS is equally broken. Its various interfaces have given me “Unable to connect to CIFS host” and “NT_STATUS_INVALID_PARAMETER,” but I'm not sure if it's the same problem. If we can figure out the file shares first, maybe that will explain itself.

Samba itself should be almost pristine. I have not touched any configuration files; just added some shares through the Folder Sharing options in Nautilus (nautilus-share).

Any idea what's going on here? 🙂

Best Answer

Last time I checked (some months ago), I explicitly had to add a permission for "Guest" to the Windows 7 share (Advanced Sharing > Permissions) to allow password-free connections. "Everyone" alone didn't work for whatever reason. Maybe this has changed in the meantime, but it's worth a try.