GNOME Bugzilla – Bug 309700
Nautilus does not show permissions for files/folders in ftp
Last modified: 2010-01-06 10:20:56 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.
gnomevfs-info has no "Permissions" line for ftp locations
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.
*** Bug 325906 has been marked as a duplicate of this bug. ***
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.
Priority: High because of the patch
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.
Mentioned in https://launchpad.net/distros/ubuntu/+source/gnome-vfs2/+bug/33211 as well, bumped version to 2.14.x
Could you mail the patch on the gnome-vfs list (maintainer use it for patch review)?
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
Christian, I've applied that patch to the Ubuntu package, that fixes the issue for sftp but no on ftp (anonymous or authentified)
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.
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
It seems the new gvfs bug is bug 565624.