Nautilus share option doesn't allow guests

Bug #583921 reported by KaOSoFt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus-share (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: nautilus-share

Whenever I share a folder through the right-click option on Nautilus, even if I set it to allow guests, this shared folder will always ask me for a username/password on any Windows machine (I've tried XP, Vista, and 7), and it won't even ask me for this data if I try to access it from another Ubuntu 10.04 LTS.

From what I've gathered, both smb.conf files (in /etc/samba/ and in /usr/share/samba/) are untouched, which makes it look like the extension isn't working. On Ubuntu 9.10 this worked the first time I tried it, but no idea what might be happening here on 10.04.

I order for it to work, I have to add it manually to the smb.conf file, allowing guests, and also using "force user =", otherwise just as guests it'd keep asking for the username/password.

I attached the "testparm -s" output, and here's the package versions:

libpam-smbpass 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
libsmbclient 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
libwbclient0 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
samba 2:3.4.7~dfsg-1ubuntu3 install ok installed
samba-common 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
samba-common-bin 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
smbclient 2:3.4.7~dfsg-1ubuntu3 samba install ok installed
winbind 2:3.4.7~dfsg-1ubuntu3 samba install ok installed

Tags: nautilus samba
Revision history for this message
KaOSoFt (maxzagato) wrote :
Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 583921] [NEW] Nautilus share option doesn't allow guests

On Saturday 22,May,2010 01:40 AM, KaOSoFt wrote:
> Public bug reported:
>
> Binary package hint: nautilus-share
>
> Whenever I share a folder through the right-click option on Nautilus,
> even if I set it to allow guests, this shared folder will always ask me
> for a username/password on any Windows machine (I've tried XP, Vista,
> and 7), and it won't even ask me for this data if I try to access it
> from another Ubuntu 10.04 LTS.

What happens when accessing from another Ubuntu installation then, if it doesn't
ask you for your credentials?

>>From what I've gathered, both smb.conf files (in /etc/samba/ and in
> /usr/share/samba/) are untouched, which makes it look like the extension
> isn't working. On Ubuntu 9.10 this worked the first time I tried it, but
> no idea what might be happening here on 10.04.
>
> I order for it to work, I have to add it manually to the smb.conf file,
> allowing guests, and also using "force user =", otherwise just as guests
> it'd keep asking for the username/password.
>
> I attached the "testparm -s" output, and here's the package versions:

Could you post the output of "net usershare info" please?

--
Kind regards,
Chow Loong Jin

Revision history for this message
KaOSoFt (maxzagato) wrote :

1. I get the message box: [title]Unable to mount location[title] [message]Failed to mount Windows share[message].
2.
[compartida]
path=/home/webmaster/Shared
comment=
usershare_acl=Everyone:F,
guest_ok=y

Sorry if I missed anything else. In case you need something else, just let me know.

Revision history for this message
KaOSoFt (maxzagato) wrote :

By the way, I can see the list of shared resources (folder, printers). It's when I want to access the shared folder (printers works alright) that I get asked for my credentials (on Windows), or get the mount error (Ubuntu).

Revision history for this message
KaOSoFt (maxzagato) wrote :
Revision history for this message
KaOSoFt (maxzagato) wrote :

Another text file with some more information about this issue.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Could you check if "smbclient -U guest //<ip address>/<share name>" connects to the share successfully? If not, it would probably be a samba bug. Nautilus-share can only control the entries that you see in "net usershare info', and as you've seen, guest_ok=y is set there.

Revision history for this message
KaOSoFt (maxzagato) wrote :

I get this:

username@machine:~$ smbclient -U guest //machine/Public
Enter guest's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
username@machine:~$

Also, this is the third time I reinstall Ubuntu (no longer because of this, it was about testing video drivers), and I took the opportunity to try again this issue, to no avail.

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 583921] Re: Nautilus share option doesn't allow guests

On Wed, 09 Jun 2010 17:56:05 -0000
KaOSoFt <email address hidden> wrote:

> I get this:
>
> username@machine:~$ smbclient -U guest //machine/Public
> Enter guest's password:
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.7]
> tree connect failed: NT_STATUS_BAD_NETWORK_NAME
> username@machine:~$
>
> Also, this is the third time I reinstall Ubuntu (no longer because of
> this, it was about testing video drivers), and I took the opportunity to
> try again this issue, to no avail.
>

Could you try replacing "machine" with the IP address of the machine? It looks
like it cannot resolve the IP address of the machine name.

--
Kind regards,
Chow Loong Jin

Revision history for this message
KaOSoFt (maxzagato) wrote :

Nope, same error. :'(

I'm no expert, but I could not find a clear definition for NT_STATUS_BAD_NETWORK_NAME.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Thu, 10 Jun 2010 17:47:20 -0000
KaOSoFt <email address hidden> wrote:

> Nope, same error. :'(
>
> I'm no expert, but I could not find a clear definition for
> NT_STATUS_BAD_NETWORK_NAME.
>

My intuition says that it means it couldn't connect, e.g. it couldn't
find the host.

--
Kind regards,
Chow Loong Jin

Revision history for this message
Chow Loong Jin (hyperair) wrote :

How about "smbclient -L //<host ipaddress>/"? What does that say?

Revision history for this message
KaOSoFt (maxzagato) wrote :

Check this:
http://pastebin.com/McdbqqQj

"Compartida" is the shared folder name.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Thu, 10 Jun 2010 22:21:42 -0000
KaOSoFt <email address hidden> wrote:

> Check this:
> http://pastebin.com/McdbqqQj
>
> "Compartida" is the shared folder name.
>

I see. That means the NT_STATUS_BAD_NETWORK_NAME refers to the share
not being available for some reason or other. Could you try "smbclient
-U guest //192.168.0.12/Compartida", and after that see if you can find
anything relevant to the error in /var/log/samba?

--
Kind regards,
Chow Loong Jin

Revision history for this message
Andrius Jurkus (wolas) wrote :

Same here on 10.04 i made guest allow and windows 7 see the shared folder but cant get in it says "network path not found"

Revision history for this message
erik flister (eflister) wrote :
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.