Ubuntu – Cannot connect to Samba share from Nautilus

nautilusnetworkingsamba

I have Ubuntu 10.04 and I would like to connect to my Samba shares which are on a DLink DNS323.

From Nautilus in "Places" -> "Network" I can easily navigate to the DND323 and see the available shares. When I select one of the password-less share I have access to it as expected. When I want to connect to a password protected share, it doesn't work. All it does is asking the password again and again.

I tried to mount the share manually and it worked the first time with

sudo mount -t cifs -o username=user,password=pass //xxx.xxx.xxx.xxx/share ~/share

Any idea why this is not working in Nautilus ?

Best Answer

I found a simple answer in this ubuntuforums.org thread

The newer versions of samba are not supporting anymore by default the LANMAN authentication scheme that is used by the DLink DNS323. To correct this issues, the only thing to do is:

Edit /etc/samba/smb.conf

Find the [global] section, and insert this line:

client lanman auth = yes

You don't even have to reboot and you will be able to mount your shared folders with Gnome Nautilus.

This is also required to connect to the samba shares of another Lucid box (if they're password protected). Ironic, isn't it?