After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 529365 - doesn't allow to give extra credentials when connecting to shares
doesn't allow to give extra credentials when connecting to shares
Status: RESOLVED DUPLICATE of bug 742169
Product: gvfs
Classification: Core
Component: smb backend
0.2.x
Other Linux
: Normal major
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-04-22 12:07 UTC by Sebastien Bacher
Modified: 2015-02-25 08:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sebastien Bacher 2008-04-22 12:07:07 UTC
The current code doesn't allow the user to authentificate when connecting to a share which is also anonymously available, the authentification might be required to get write access for example
Comment 1 Lionel Dricot 2008-04-25 10:08:46 UTC
I confirm this bug.

When I browse the SMB network at work, I can see the computers connected and, if I want to browse one, I only see an empty window with 0 elements (at this point it should ask for my password like it was doing with Nautilus 2.20).

Using gvfs-mount works perfectly.
Comment 2 Peter Kerekfy 2008-04-28 13:34:26 UTC
In my opinion the issue described by Lionel is not the same as the original issue reported by Sebastien. I think that the issue described by Lionel might be the duplicate of Bug #524485.

Anyway, I confirm the original issue. There is no way to provide authentication information thus gain more access to shares which are also anonymously accessible.

It also does not work when I mount the share with explicit username from the command line:
$ gvfs-mount smb://kpeter@duron/projects

This succeeds and the desktop icon appears but I only get anonymous access. After opening the icon with nautilus an other mount is established:
$ gvfs-mount -l
Mount(0): projects ezen: duron -> smb://duron/projects/
Mount(1): projects ezen: duron -> smb://duron/projects/

Strange.
I think that this second mount is anonymous and it is very bad...
Comment 3 DrC 2008-05-12 18:11:17 UTC

Some detail hoping it will help:

On  my school network, all my samba servers have (amongst others) a public share (Samba logs me on as nobody, nogroup if credentials are not supplied) and a user share which (naturally) needs credentials.  They are all security=user.

This problem only appears on Hardy clents.   W98, XPpro, Gutsy clients all work fine.

I too get the 'not mounted' message but this looks like a timing problem - after getting the message I invariably find the share is now mounted, whether the public share or my user share.

User shares give no problem as far as I can see. My credentials are collected and it all works.

Public shares give a problem if my credentials are needed. For instance, in the public share is a staff_only folder. Even when I try to connect to public giving my user name, I end up as nobody, nogroup and so, of course, I cannot get into the staff_only folder. Hardy does not ask me for credentials.

If I try to connect giving the staff_only folder as well as the public share name, Hardy does ask for my credentials. However, Hardy seems not to use them, and I still end up as nobody, nogroup and still cannot get into the folder.

It seems as though Hardy looks to see if credentials are required, and if not, will not present them.

The change I would hope to see is a reversion to Feisty-Gutsy behaviour which I never noticed because it just worked, but I think credentials were presented to samba if they were required OR IF THEY WERE OFFERED.

If I give no UserName when connecting, I expect to be nobody, nogroup
If I give a user name I expect my credentials to be verified with samba (currently they are not) and then to be username,primarygroup, even when connecting to a public share.

My Sambas range from an old Mandrake to the latest Debian.

Let me know if you need any config files etc.

Chris
Comment 4 Thomas M Steenholdt 2008-06-03 02:33:28 UTC
Has anyone been able to make any progress in this case? What sort of info would be required to sort this problem out?
Comment 5 Thomas M Steenholdt 2008-08-23 00:15:09 UTC
You might want to take a look at https://bugzilla.redhat.com/show_bug.cgi?id=448008 which appears to regard the same issue and contains some debug info that might be useful for fixing this bug.

Please let me know if there is anything else needed for fixing this.

/Thomas
Comment 6 DrC 2008-08-23 09:33:22 UTC
Is this bug really still unconfirmed?  Or has this thread been abandoned as a duplicate?  Or is there some doubt about whether it is a Gnome issue?

It is still on my watch list....

Chris.
Comment 7 Thomas M Steenholdt 2008-08-23 11:09:49 UTC
I can certainly confirm it on my end. I haven't been able to connect to Windows shares (through the gnome interface) since installing Fedora 9, which is the first Fedora to use the new gvfs way of doing things...
Comment 8 Timo Laine 2008-09-28 13:07:49 UTC
I can confirm this bug still exists in Hardy with all the updates installed.
Comment 9 Wu Tim 2008-11-28 05:35:26 UTC
(In reply to comment #2)
> In my opinion the issue described by Lionel is not the same as the original
> issue reported by Sebastien. I think that the issue described by Lionel might
> be the duplicate of Bug #524485.
> 
> Anyway, I confirm the original issue. There is no way to provide authentication
> information thus gain more access to shares which are also anonymously
> accessible.
> 
> It also does not work when I mount the share with explicit username from the
> command line:
> $ gvfs-mount smb://kpeter@duron/projects
> 
> This succeeds and the desktop icon appears but I only get anonymous access.
> After opening the icon with nautilus an other mount is established:
> $ gvfs-mount -l
> Mount(0): projects ezen: duron -> smb://duron/projects/
> Mount(1): projects ezen: duron -> smb://duron/projects/
> 
> Strange.
> I think that this second mount is anonymous and it is very bad...
> 

Yes, I confirm this bug.
If a share has anonymous read right access to all user, while someone user has read/write access to it. When you use gvfs-mount,even you input credentials of someone who has write access, you can still can not write to it in nautilus. 

Please fixed it ASAP!
Comment 10 gQuigs 2009-07-23 11:14:27 UTC
I am still getting this bug and it is still valid on more recent releases, aka gvfs 1.2.2 on Ubuntu.  


Please increase version, gnome version, and mark confirmed.  Thanks
Comment 11 Ondrej Holy 2015-02-25 08:00:30 UTC
It should be already fixed...

*** This bug has been marked as a duplicate of bug 742169 ***