gvfsd-sftp do not preserve file ownership on file modification operation

Bug #1152883 reported by Sancho
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gvfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Problem overview:
When using gvfs-sftp connection to modify some remote files, editing remotely (with gedit, sublime, etc) then saving these files changes their user and group ownership on server.

Problem configuration:
- one desktop with Ubuntu 12.04.2 LTS and Unity desktop
  (3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux)
- one server width Ubuntu 12.04.2 LTS server
  (3.5.0-25-generic #39~precise1-Ubuntu SMP Tue Feb 26 00:11:13 UTC 2013 i686 i686 i386 GNU/Linux)
- one server directory with some files
  - directory permission : drwxrwx--- serverUser clientUser
  - files in this directory : -rw-rw---- serverUser clientUser
    (aka <perms> <user-owner> <group-owner>)

Problem reproduction:
1- Use Nautilus (3.4.2) to "Connect to server ..." from your desktop pc to your server pc using your ssh 'clientUser' credential (as mentioned above).
2- Browse to the above mentioned directory through Nautilus (from desktop client in the remote served directory)
3- Open a remote file for edition with gedit (or any other desktop editor, from nautilus or command line like gedit ~/.gvfs/...)
4- Edit and save file
5- Check file permission on server directory
6- the file ownership has changed to something like -rw-rw---- clientUser clientUser

Using vi (or vim) give an error at save time, but, the content is save succefully, permission are set to something -rw------- clientUser clientUser

Revision history for this message
Sancho (christophe-andral) wrote :

As mentions Scott (https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/227808/comments/27):
"I hope this bug is fixed soon as it completely ruins a really cool way of working in Linux. "

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gvfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Patryk "LeadMan" Benderz (leadman) wrote :

This regression is back again:

patben@patben-amd:~/.ssh$ lsb_release -r
Release: 15.10
patben@patben-amd:~/.ssh$ apt-cache policy gvfs gedit kate
gvfs:
  Zainstalowana: 1.24.2-0ubuntu4
  Kandydująca: 1.24.2-0ubuntu4
  Tabela wersji:
 *** 1.24.2-0ubuntu4 0
        500 http://pl.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
gedit:
  Zainstalowana: 3.10.4-0ubuntu13
  Kandydująca: 3.10.4-0ubuntu13
  Tabela wersji:
 *** 3.10.4-0ubuntu13 0
        500 http://pl.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
kate:
  Zainstalowana: 4:15.08.2-0ubuntu1
  Kandydująca: 4:15.08.2-0ubuntu1
  Tabela wersji:
 *** 4:15.08.2-0ubuntu1 0
        500 http://pl.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
        100 /var/lib/dpkg/status

Possibly this is duplicate of bug #227808

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.