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 309700 - Nautilus does not show permissions for files/folders in ftp
Nautilus does not show permissions for files/folders in ftp
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
2.14.x
Other Linux
: High normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 325906 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-07 11:13 UTC by Archana Shah
Modified: 2010-01-06 10:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Suggested fix (1.73 KB, patch)
2005-07-26 06:52 UTC, Archana Shah
none Details | Review

Description Archana Shah 2005-07-07 11:13:03 UTC
Steps to reproduce:
1. Launch nautilus
2. Connect to any ftp server using ftp:// method
3. Right click on any file/folder -> Properties -> Permissions 

Bug: It says "permissions of the <file/folder> could not be determined.

It shows the permissions under sftp and smb protocols and shows the owner of the
files as the owner of the nautilus process.
Comment 1 Sebastien Bacher 2005-07-17 11:19:45 UTC
gnomevfs-info has no "Permissions" line for ftp locations
Comment 2 Archana Shah 2005-07-26 06:52:13 UTC
Created attachment 49758 [details] [review]
Suggested fix

This patch adds the PERMISSIONS to the valid information fields so nautilus
shows the permissions for folder/files under ftp method.
Comment 3 Patryk Zawadzki 2006-01-19 02:42:52 UTC
*** Bug 325906 has been marked as a duplicate of this bug. ***
Comment 4 Patryk Zawadzki 2006-01-19 02:47:34 UTC
Is there any reason the suggested patch cannot be commited to the HEAD?

I can see only one potential problem. It tricks Nautilus into thinking that the current user is the owner of each and every file. Same seems to apply to other FTP clients as beacause of virtual FTP systems (where you log in as one user but end up as another user) there is no way to tell if you are able to change permissions until you try to do so and it either succeeds or fails.
Comment 5 Fabio Bonelli 2006-01-30 20:28:32 UTC
Priority: High because of the patch
Comment 6 Jean-François Fortin Tam 2006-03-19 14:02:59 UTC
I think this applies to SFTP also, would the patch change that? Also, in gnome 2.14, I noticed that this problem sometimes applies to local files/folders. The sad thing is that I could not figure out what caused it, the permissions seem perfectly normal.
Comment 7 Daniel Holbach 2006-03-21 20:10:43 UTC
Mentioned in https://launchpad.net/distros/ubuntu/+source/gnome-vfs2/+bug/33211 as well, bumped version to 2.14.x
Comment 8 Sebastien Bacher 2006-04-21 19:46:08 UTC
Could you mail the patch on the gnome-vfs list (maintainer use it for patch review)?
Comment 9 Christian Neumair 2006-04-21 21:15:16 UTC
No, please don't do something like this. It's really an ugly hack and only works for localhost. ftp doesn't support uid/gid properly. Doesn't [1] fix your issue?

[1] http://mail.gnome.org/archives/nautilus-list/2006-March/msg00107.html
Comment 10 Sebastien Bacher 2006-05-02 14:32:55 UTC
Christian, I've applied that patch to the Ubuntu package, that fixes the issue for sftp but no on ftp (anonymous or authentified)
Comment 11 Wang Xin 2006-10-18 09:27:26 UTC
we can make nautilus show permission for files/folders in ftp by simply commenting out
      file_info->valid_fields &= ~GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS;
in modules/ftp-method.c:do_read_directory().

But because gnome-vfs uses uid to identify the owner of files/folders which is invalid across the networks, the owner shows in the dialog is wrong. So I think for remote files/folers, name not uid should be used to identify the owner remote of files/folders.
Comment 12 André Klapper 2008-09-06 19:03:12 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html
Comment 13 Gary van der Merwe 2010-01-06 10:20:56 UTC
It seems the new gvfs bug is bug 565624.