[lucid] Nautilus asks password when accessing workgroup

Bug #490201 reported by Stephen Cradock
106
This bug affects 21 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: samba

In Lucid, the samba shares that should be accessible through nautilus cannot be opened because clicking on WORKGROUP opens a password dialog. Investigation using system-config-samba shows an unreadable password for the (only) user, which cannot be changed or deleted (as it could be in Karmic).

Revision history for this message
Thierry Carrez (ttx) wrote :

A little more information would be nice. Are you using Lucid on the shares side, or on the Nautilus side ? or both ? Is it something you experience after upgrading a (working) karmic setup, or on a new install ? Please provide information described at https://wiki.ubuntu.com/DebuggingSamba

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Stephen Cradock (s-cradock) wrote :
Download full text (3.2 KiB)

Thanks for getting back to me. Here is some additional information:

I'm using an upgraded Lucid install, trying to access the workgroup in the same machine at this stage.

I had the same problem in (another) Karmic install, but fixed it by installing system-config-samba and re-setting the password for my user. I do not recall setting a password, and the password was not any that I remember using for any purpose. I don't know what it was, but I could reset it.

For some reason that doesn't work in Lucid. Trying to reset fails, the old password reappears when I query again in s-c-samba.

Here is some of the information requested in the Wiki:

dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' grep samba
grep 2.5.4-4 install ok installed
samba 2:3.4.3-1ubuntu1 install ok installed

sc@sc-laptop:~$ smbclient //workgroup/joana-pc
Enter sc's password:
Connection to workgroup failed (Error NT_STATUS_UNSUCCESSFUL)

sc@sc-laptop:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
 server string = %h server (Samba, Ubuntu)
 map to guest = Bad User
 obey pam restrictions = Yes
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
 username map = /etc/samba/smbusers
 unix password sync = Yes
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 usershare allow guests = Yes
 panic action = /usr/share/samba/panic-action %d

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 printable = Yes
 browseable = No
 browsable = No

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers

last few errors from log.sc-laptop:

[2009/11/09 21:13:42, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2009/11/09 21:13:42, 0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2009/11/27 19:04:53, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2009/11/27 19:04:53, 0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2009/11/27 19:04:53, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2009/11/27 19:04:53, 0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2009/11/29 16:01:25, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2009/11/29 16:01:25, 0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
[2009/11/29 16:01:25, 0] lib/util_sock.c:539(read_fd_with_timeout)
[2009/11/29 16:01:25, 0] lib/util_sock.c:1491(get_peer_addr_internal)
  getpeername failed. Error was Transport ...

Read more...

Revision history for this message
ubername (ubername) wrote :
Download full text (16.3 KiB)

Hi

See http://ubuntuforums.org/showthread.php?t=1341141 for more info.

In a nutshell - nautilus and gnome-commander both ask for passwords when attempting to access a workgroup from a lucid box.

Following the advice in https://wiki.ubuntu.com/DebuggingSamba
I attach the following outputs

me@lucidbox:~$ dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
gadmin-samba 0.2.7-4 deinstall ok config-files
libpam-smbpass 2:3.4.3-1ubuntu1 samba deinstall ok config-files
libsmbclient 2:3.4.3-1ubuntu1 samba install ok installed
libwbclient0 2:3.4.3-1ubuntu1 samba install ok installed
samba 2:3.4.3-1ubuntu1 install ok installed
samba-common 2:3.4.3-1ubuntu1 samba install ok installed
samba-common-bin 2:3.4.3-1ubuntu1 samba install ok installed
smbclient 2:3.4.3-1ubuntu1 samba install ok installed
smbfs 2:3.4.3-1ubuntu1 samba install ok installed
swat 2:3.4.3-1ubuntu1 samba deinstall ok config-files
system-config-samba 1.2.63-0ubuntu4 install ok installed
winbind 2:3.4.3-1ubuntu1 samba deinstall ok config-files

me@lucidbox:~$ smbclient //remotepc/SharedDocs
Enter me's password: <hit return - no password specified>
Domain=[remotepc] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> q

me@lucidbox:~$ smbclient -L //remotepc
Enter me's password: <hit return - no password specified>
Domain=[remotepc] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

 Sharename Type Comment
 --------- ---- -------

Terminal then hangs.

/var/log/samba/log.smbd (snip)
2009/11/30 15:22:31, 0] smbd/server.c:1069(main)
  smbd version 3.4.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/11/30 15:22:32, 0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2009/11/30 15:22:32, 0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2009/11/30 15:22:32, 0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2009/11/30 15:22:32, 0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use

/var/log/samba/log.nmbd (snip)
  *****
[2009/11/30 15:04:52, 0] nmbd/nmbd.c:71(terminate)
  Got SIGTERM: going down...
[2009/11/30 15:22:31, 0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/11/30 15:22:54, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****

  Samba name server lucidbox is now a local master browser for workgroup xxxxxx on subnet 192.168.2.2

  *****

me@lucidbox:~$ smbclient -L //lucidbox/
Enter me's password: <hit return - no password specified>
Domain=[xxxxxx] OS=[Unix] Server=[Samba 3.4.3]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (lucidbox server (Samba, Ubuntu))
 music Disk
Domain=[xxxxxx] OS=[Unix] Server=[Samba 3.4.3]

 Server Comment
 --------- -------
 remotepc laptop
 lucidbox lucidbox server (...

Revision history for this message
ubername (ubername) wrote :

just noticed this in /var/log/samba/log.lucidbox

[2009/11/30 16:01:23, 0] smbd/map_username.c:140(map_username)
  can't open username map /etc/samba/smbusers. Error No such file or directory

which is true - there is no smbusers file in etc/samba although a list of users appears in system-config-samba:

me@lucidbox:/etc/samba$ ls -l
total 20
-rw-r--r-- 1 root root 8 2009-11-26 19:58 gdbcommands
-rw-r--r-- 1 root root 12455 2009-11-29 10:25 smb.conf
me@lucidbox:/etc/samba$

I haven't deleted it - this is how samba install from synaptic left it.

Revision history for this message
ubername (ubername) wrote :

I see this bug is marked as incomplete and due to be expired in 59 days. Could someone help me to do whatever is necessary to resurrect it possibly by letting me know what else is needed to change its status from 'incomplete'?

Revision history for this message
Richard Garvin (garvinrick4) wrote :

Have had same: 3 ubuntu 9.10 and 2 Windows 1 Windows 7 and 1 Windows Vista all networked and working properly.
Upgraded to Lucid on 1 of the 9.10 and in that version when went into network saw Workgroup Icon when selected
password and authentication window nothing from there.
  All other versions see other Computes and their partitions on opening network and also a icon for Workgroup.
Any part of Samba.conf or any other file and I will be glad to post. Let me know what you would like posted.

Seems to be quite a few with same identical problem on Lucid upgrade. No doubt an issue.

Revision history for this message
Richard Garvin (garvinrick4) wrote :

 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:53:52 UTC 2009 x86_64 GNU/Linux
Ubuntu 10.04 Lucid

HP-G71-34OUS
Intel Mobile 4 Series Chipset Memory controller Hub (revision 07)
Subsystem: Hewlett-Packard Company Device 306b
Intel Corporation 82801I (ICH9 Family)

Downloaded samba-gdb file and in usr/bin/gdb would not open for info.
Any other file please inform.

ubername (ubername)
Changed in samba (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
cariboo (cariboo) wrote :

This really isn't a samba bug, as following the steps on this page:

https://wiki.ubuntu.com/DebuggingSamba

everything works as it should.

smbclient -L //willy
Enter my password: <press enter >
Anonymous login successful
Domain=[APLUS] OS=[Unix] Server=[Samba 3.3.2]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 Movies Disk Movies & TV Shows
 Music Disk Music
 Documents Disk Documents
 Stuff Disk Everything Else
 Iso Disk Mounted iso's
 IPC$ IPC IPC Service (willy server (Samba, Ubuntu))
Anonymous login successful
Domain=[APLUS] OS=[Unix] Server=[Samba 3.3.2]

 Server Comment
 --------- -------
 COLLECTOR
 MCLEESE
 RISKY XP Computer
 WILLY willy server (Samba, Ubuntu)

 Workgroup Master
 --------- -------
 APLUS WILLY

me@chilanko-lucid:~$ smbclient //willy/stuff
Enter e password: <enter password of user on server>
Domain=[APLUS] OS=[Unix] Server=[Samba 3.3.2]
smb: \> dir
  . D 0 Wed Dec 2 19:58:05 2009
  .. D 0 Wed Nov 11 20:21:27 2009
  Downloads D 0 Fri Jul 17 00:55:34 2009
  stuff D 0 Tue Aug 18 12:58:19 2009
  restore D 0 Tue Dec 1 20:28:04 2009

the above results indicate to me, that samba is working as it should. the problem seems to me to be with nautilus.

Revision history for this message
Thierry Carrez (ttx) wrote :

Comment #8 seems to prove libsmbclient is working properly... Furthermore samba hasn't changed (yet) from karmic to lucid, so probably not a regression there. Reassigning...

summary: - samba fails to open shares because of fixed unknown password
+ [lucid] Nautilus asks password for non-protected SMB share
summary: - [lucid] Nautilus asks password for non-protected SMB share
+ [lucid] Nautilus asks password when accessing workgroup
affects: samba (Ubuntu) → nautilus (Ubuntu)
Changed in nautilus (Ubuntu):
importance: Low → Undecided
status: Confirmed → New
Revision history for this message
ubername (ubername) wrote :

However same (similar) behaviour is exhibited by gnome-commander. Also issue with no smbusers in etc/samba yet system-config-samba shows list of users?

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you get the issue using gvfs-mount too? the issue seems rather likely to be a samba libsmbclient one...

Revision history for this message
Stephen Cradock (s-cradock) wrote :

Yes, the same error results from "gvfs-mount smb://sc-laptop/Public" -

Repeated requests for a password, and no share is mounted, even after entering the user's password.

Also, there is the problem that system-config-samba is not accepting changes in the password, or empty password to remove password protection.

I agree that this is not confined to nautilus, but is a samba regression. As far as my experience goes, it could have arisen before karmic was released - this lucid is derived from karmic alpha4, as far as I remember.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
cariboo (cariboo) wrote :

Stephen Cradock, can you change the samba password from the command line?

Revision history for this message
Stephen Cradock (s-cradock) wrote :

Hmm - I haven't tried that yet - I'll look at it when I get home tonight.

Which command does that? I haven't really penetrated beyond the GUI yet....

Revision history for this message
Stephen Cradock (s-cradock) wrote :

OK - running "sudo smbpasswd -n [USER]" does not change the behavior. The transition from WORKGROUP to the list of connected machines still requires a password, which is unknown to me.

Yes, I logged out and in again....

Revision history for this message
Stephen Cradock (s-cradock) wrote :

I am now getting an error when trying to open Nautilus using Places | Network. The error box claims that Nautilus cannot handle "network" locations. I have reinstalled Nautilus, nautilus-share and nautilus-send-to, without success.

Samba, on the other hand, is working as a server, and other machines can see the share on the Lucid box. The same share is accessible from the Lucid box using "smbclient //sc-laptop/Public". This asks for a password, but accepts either the normal password for the user or a NULL password.

Revision history for this message
DeJe (djenett) wrote :

I do have same Problem since installing Lucid over Karmic.
But "gvfs-mount smb://machine/share" is working here as expected. Also, "Places/connect to server" works OK.

All other machines on the network have no problems accessing the workgroup and shares, including a Hardy (on exactly the same machine) and a multi media player with embedded Linux.

sparker256 (bgood)
Changed in nautilus (Ubuntu):
status: New → Confirmed
status: Confirmed → New
Revision history for this message
Jordan Farrell (feralbytes) wrote :

I have the same issue stated above, I am consistently told that the attempt to mount the windows share fails. I have been seeking help but it appears this bug is preventing a solution.

Revision history for this message
DeJe (djenett) wrote :

Any progress in this?

In the meanwhile there are a lot of nautilus/samba updates coming in. But this bug still remains.

Oh, I see. Networking isn't a big issue... :(

Revision history for this message
Nicholas Roberts (nicholasdavidroberts) wrote :

Major issue for me as I cannot open shares on my other Ubuntu machines to transfer large files... guess this has stumped everyone?

How do you stop Nautilus asking for a password or is there some 'magic' default for this non-existent password?

Many thanks
Nick

Revision history for this message
theozzlives (theozzlives) wrote :

There is a temporary work-around. Hit Alt-F2, typr nautilus smb://<whatever the IP is for a machine>/, then bookmark that location. This will suffice for me until the bug is fixed.

Revision history for this message
Ameur Mohammed (ameur-mohamed) wrote :

true
this temporary fix works but just if you know the IP or Machine name on workgroups.
samba on lucid works very well as a server but not as client, it keeps asking for user authentication when you wanna browse the network.
hope this will be fixed pretty soon!

Revision history for this message
paulvas (paulvas) wrote :

I tried the workaround and was able to see shares on the other machine, but when I try open any of them I am getting window requesting workgroup password.

Revision history for this message
Richard Garvin (garvinrick4) wrote :

Used this fix and now I have network access in Workgroup in Lucid.

sudo gedit /etc/samba/smb.conf

Find this section in the file:

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:

security = user
username map = /etc/samba/smbusers

Revision history for this message
Stephen Cradock (s-cradock) wrote :

Thanks garvinrick4; that doesn't help me. I still get the failure message in trying to open Network in Nautilus;

'Nautilus cannot handle "network" locations'

Revision history for this message
darthanubis (darthanubis) wrote :

No longer get the error. Have no idea what happened to change the issue other than the updates that got pulled down and rebooted this morning. My machine sees all the other machine shares, and no longer ask me for a password. But I can't see my own machine as a sharing machine in the workgroup.

Ok, samba did not start itself after boot. I had to manual just while typing this run the server. hope it autostarts next boot?

Revision history for this message
darthanubis (darthanubis) wrote :

Yeah well, it still does not see itself in the workgroup. I was able to see it form a another Karmic machine, but after restarting the server, the Karmic server sees no machines. You have to laugh at the state of samba in Ubuntu at this point. Not once have I had a consistent experience with samba.

Revision history for this message
Richard Garvin (garvinrick4) wrote :

If you do not have a samba password or the file etc/samba/smbusers does not have your user name it will not
work. Mine says just rick = rick

There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a <username>

Next, we’ll add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Add in the following line, substituting the username with the one you want to give access to. The format is <ubuntuusername> = “<samba username>”. You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.

<username> = “<username>”

Revision history for this message
theozzlives (theozzlives) wrote : Re: [Bug 490201] Re: [lucid] Nautilus asks password when accessing workgroup

 that fix did not work, I created a smbusers file and put ozzie = ozzie. I always run sudo smbpasswd -a ozzie when I setup samba.

Revision history for this message
ubername (ubername) wrote :

Anyone still reckon this is a nautilus bug?

Revision history for this message
Richard Garvin (garvinrick4) wrote :

Sorry this fix #24 & #28 did not work for you all, it has worked for me and let me open
Workgroup and access all devices on the network. I have not had access since day one
of Lucid. Must be a reason why in here somewhere. This was an old fix but worked and I
tried a lot of them. Using Windows 7, Vista, 2 Karmic's and 1 lucid on network. One machine
is wired with router, USB printer and USB external. One machine triple boot with 7,Karmic and Lucid.
HP G71-340US Laptop with N Wifi.
id:
cpu
product: Intel(R) Core(TM)2 Duo CPU T6600 @ 2.20GHz
vendor: Intel Corp.
physical id:
1
bus info:
cpu@0
size: 1200MHz
capacity: 1200MHz
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm cpufreq
id:
pci
description: Host bridge
product: Mobile 4 Series Chipset Memory Controller Hub
vendor: Intel Corporation
physical id:
100
bus info:
pci@0000:00:00.0
version: 07
width: 32 bits
clock: 33MHz
configuration:
driver = agpgart-intel
resources:
irq : 0

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Thank you for taking the time to report this bug. However, the bug you reported was already reported at bug #510059 and I'm marking this bug as a duplicate. Please continue the conversation there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.