Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 76253
Summary: | Can't access smb:// shares with browseable = no (ie homes) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <mitch> | ||||
Component: | gnome-vfs2-extras | Assignee: | Alexander Larsson <alexl> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 8.0 | CC: | alexl, chris.ricker, marius.andreiana, ted | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.14.0 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-04-22 20:30:56 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 79579, 100644 | ||||||
Attachments: |
|
Description
Need Real Name
2002-10-18 18:56:11 UTC
Yes. This is a known bug. *** Bug 75623 has been marked as a duplicate of this bug. *** *** Bug 70873 has been marked as a duplicate of this bug. *** *** Bug 74821 has been marked as a duplicate of this bug. *** Any ideas how to fix this? Perhaps a debug version? Is there a gnome bug on this? I grabbed gnome-vfs2-extras-0.99.6.1 form gnome.org but it doesn't help. What can we do to get this going? The code just has to be fixed to not think it managed to log in anonymously when it has no read access. Its a small matter of experimenting and coding. Unfortunately I have other higher prioritized issues to work on first, so unless someone else wants to write a patch there is not much you can do at the moment. (I'm also the upstream maintainer and author) Is this just in the vfs-extras code or somewhere else? Any pointers to which files/functions to look at? Also I'm not sure the browsable option matters. smb.conf [build] Is this just in the vfs-extras code or somewhere else? Any pointers to which files/functions to look at? Also I'm not sure the browsable option matters. See Bug#75623, marked as a dup of this one. (Odd since it's a week older...) smb.conf [build] comment = Public Stuff path = /build guest ok = yes browsable = ues But I cannot access smb://foo/build "Cannot find "smb" ... check the spelling and try again." I found the DEBUG_SMB_ENABLE in smb-method.c and rebuilt/installed libsmb.so but I cannot find any output from it. It calls g_print() but I don't know where that's supposed to go. I saw in the change log you changed the g_print() debug statements, to be based on DEBUG_SMB_ENABLE. Where/how am I to get the output from g_print()? I also see some DEBUG stuff in samba/lib that's based on DEBUGLEVEL but again I don't see how to set it or where to find it's output. Any hints? run killall -9 nautilus repeatedly until it stops respawning (or alternatively, use the ui to remove it from the session), then start nautilus from a shell and you'll get the output on standard out. I'm not an expert in samba setups in any way, but i think the problem is when the server allows anonymous to log in, but then not read anything. This means we think that the loging succeded, so we won't ask for user+passwd, but nothing actually works. Of course, there is also the problem that you may want to log in as a user even though anonymous login works. You might want to e.g. write something, and anon user only has write access. I don't know the best solution to this. > I'm not an expert in samba setups in any way, but i think the problem is when > the server allows anonymous to log in, but then not read anything. This means we > think that the loging succeded, so we won't ask for user+passwd, but nothing > actually works. I hate to be the one to say "why don't you do it like windows does" but since the people who need to get the shares this way are mostly coming from windows I'm going to. I think all that needs doing to get the semantics right is try to login first with user and pass and iff that doesn't work then try the anonymous login. That is, if I recall, the way windows does it. And yes that can screw you up in some circumstances too, but not in a way that windows people aren't used to it being screwed up... > Of course, there is also the problem that you may want to log in as a user even > though anonymous login works. You might want to e.g. write something, and anon > user only has write access. That's a problem, the bigger though is there is no way to login to browseable = no shares (or servers where you can't get the share list without logging in first - which is how win2k is these days I think) with nautilus. Period. Even when you explicitly put user:pass and share name - libsmb.so still does some sort of verification that the share exists *as an anonymous user* and won't even try the user login if it fails. That is _totally_ counterintuitive and basically useless in a lot of setups. I think sending user:pass or at least user and prompt for pass first solves all of those problems - what am I missing? One problem is that in build_server_tree() the password entered in the URI isn't being used to get the list of shares. Once you have the list, it gets some stats on each share, and it does ask for the share passwords. Problem is, If you no't connect to the server with a usename, you don't get the HOMES shares. Infact, lookup_uri() doesn't pass that to build_server_tree() because built_server_tree() doesn't have input args for them, and lookup_uri() doesn't add the to the SmbAuthInfo hash for the server. I've added the SmbAuthInfo has lookup/add to lookup_uri(). Now I can pass username and password in the uri, and see the listing for HOMES. I also figured out how to get nautilus to ask for the username and password if one wasn't given in the uri and one isn't stored in the SmbAuthInfo hash. Created attachment 84304 [details]
URI username and password used on server. Ask for username and password for server.
I think this is fixed now, can you try the latest RAWHIDE package? I'd like too, but gnome-vfs2-extras needs a new gnome-vfs2, which needs a new versions of libbonobo and gnome-mime-data. Any chance if Red Hat 8.0 versions of the requirements? The ones in rawhide are for Phoebe+. I'll be that the new libbonobo will require other new versions. Building GNOME is nopt something I've been able to do. Too many packages, and figuring out the correct order to build/install them is beyond me. I tried it before. I also tried using the new smb-method.c from gnome-vfs2-extras-0.99.8.1 but there are errors, probably fixed in the newer gnome-vfs2. In function smb_root_connection: GNOME_VFS_ERROR_NO_MASTER_BROWSER undeclared. Looking at the old smb-method.c, i replaced it with GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE which was use for that error. Installed the modules, and started X. Browsing smb:// and smb://<workgroup> is very slow. Selecting a machine in the workgroup fails, ''Couldn't display "smb://<workgroup>/<machine>", because no host "<workgroup>" could be found.'' That's because <machine> has a different samba name versus unix/HOSTS/DNS name. Using the DNS name for the machine prompted for user/pass, but then doesn't show shares from that machine. I'll try shares from a SunPCI+Win98 system after lunch. OK. I still cannot access our main server, but I can get to a protected share from Win98. The it's not using lmhosts like Windoze does. I added the server to my local /etc/samba/lmhosts file and smbclient can connect correctly, but not the smb:// vfs module. I also cannot connect to my samba server, it reports login failure, but I can connect to it from Win98. And smb://username:password@/server/service doesn't appear to work yet. I haven't checked, but I bet it's the same problem as before, and that info is not getting passed (see comment #14 and patch in #15). I'll try to get Phoebe installed to test with the current/rawhide gnome-vfs2 and gnome-vfs2-extras. Is this still an issue in FC4 / rawhide? This works with recent gnome-vfs2-smb, at least for me. Has for some time, as earlier comments state, but I'm not sure exactly when it started working. Closing. Not going to be fixed on RH8, which isn't even supported by Legacy now. |