[Hardy] public Samba SMB shares cannot be accessed anonymously from Windows XP

Bug #216465 reported by Rotbart van Dainig
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Bug #32067 only goes half the way:

"map to guest = bad user" as default is nice, but won't do a thing if "guest account = nobody" is disabled by default.

Revision history for this message
Steve Langasek (vorlon) wrote :

$ grep -i 'guest account' /etc/samba/smb.conf
; guest account = nobody
$ testparm -s --parameter-name='guest account'
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
nobody
$

So the guest account is set to nobody by default. Are you sure the problem isn't that the username you're using on the Windows client matches a username on the Ubuntu server?

Changed in samba:
status: New → Incomplete
Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote : Re: [Hardy] public Samba SMB shares cannot be accessed anonymously from Windows XP

Am Samstag, den 12.04.2008, 19:20 +0000 schrieb Steve Langasek:
> So the guest account is set to nobody by default.
D'oh.

> Are you sure the problem isn't that the username you're using on
> the Windows client matches a username on the Ubuntu server?
Yes.

I'm able to browse the overview of the samba server and see the shares -
but can't access them.

Folder and file permissions on the samba server were autoset by Nautilus
and verified.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Please attach smb.conf

Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote :

smb.conf should be default, shares are done by net usershare through the
Nautilus GUI.

In fact, even the Ubuntu machine running the samba server can't access
those shares.

Revision history for this message
Steve Langasek (vorlon) wrote :

> Folder and file permissions on the samba server were autoset by Nautilus
> and verified.

By this, do you mean that the shared directories have Unix permissions of 0755 (rwxr-xr-x)?

I have an smb.conf here almost identical to yours (except for the workgroup name and 'load printers = yes'), and I can browse to anonymous usershares just fine with nautilus. What's the precise error message that you get when trying to connect from Ubuntu?

Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote : Re: [Bug 216465] Re: [Hardy] public Samba SMB shares cannot be accessed anonymously from Windows XP

Am Sonntag, den 13.04.2008, 19:58 +0000 schrieb Steve Langasek:
> By this, do you mean that the shared directories have Unix permissions
> of 0755 (rwxr-xr-x)?
Exactly (drwxr-xr-x+) - it's a read-only share, set up by Nautilus.

> I have an smb.conf here almost identical to yours (except for the
> workgroup name and 'load printers = yes'), and I can browse to anonymous
> usershares just fine with nautilus. What's the precise error message
> that you get when trying to connect from Ubuntu?

Here it is:
> Einhängen des Ortes nicht möglich
> Einhängen des Windows-Speichers fehlgeschlagen

It's basically the same for XP: It complains that the share cannot be
accessed.

/var/log/samba is always:
> '/home/normal/Daten/Filme' does not exist or permission denied when
> connecting to [filme] Error was Permission denied

If I disable Guest Access in Nautilus the password dialogue pops up in
Ubuntu and after entering it correctly, I can access the share.
If I cancel the dialogue, the same error message as above is shown.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Which account owns /home/normal/Daten/Filme ?

Which account is used to create the share from nautilus ?

Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote :

Am Dienstag, den 22.04.2008, 03:28 +0000 schrieb Mathias Gug:
> Which account owns /home/normal/Daten/Filme ?
normal

> Which account is used to create the share from nautilus ?
normal

Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote :

After a fresh install with Hardy release, the problem persists:

Anonymous access fails:
[2008/04/27 18:04:43, 0] smbd/service.c:make_connection_snum(1003)
  '/home/normal/Daten/Filme' does not exist or permission denied when connecting to [filme] Error was Permission denied

Revision history for this message
Rotbart van Dainig (rotbart-van-dainig) wrote :

There's the mistake:

The containing drive/folder needs access for everybody, not just the shared folder. D'oh.

Changed in samba:
status: Incomplete → Invalid
Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

I confirm this bug for Ubuntu 8.10 Alpha 4+. Trying to connect to a company SMB network server share. Nautilus tells me:

----
Could not display "smb://servername/myshare$/" - Einhängen des Ortes nicht möglich.
----

This worked ok when I used 8.04. However, nautilus shows the share as mounted (gets a shortcut on the left side, as a cd would which has been inserted into a local drive). When I press the "eject" (unmount) button for this share, I sometimes get the following error message:

----
Could not display "smb://servername/myshare$/". Fehler: DBus error org.freedesktop.DBus.Error.InvalidArgs: Mountpoint Already registered - Bitte wählen Sie einen anderen Betrachter und versuchen Sie es erneut.
----
I entered my account data the first time I tried to connect. Strangely enough, in the properties you can see how many files there are on this share and how much data there is all in all, but the file list cannot be displayed.

Changed in samba:
status: Invalid → New
Revision history for this message
Joel Goguen (jgoguen) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in samba:
status: New → Incomplete
Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in samba (Ubuntu):
status: Incomplete → Won't Fix
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.