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 402947 - Drag and Drop a file with different ownership should copy it instead move it
Drag and Drop a file with different ownership should copy it instead move it
Status: RESOLVED DUPLICATE of bug 314139
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.18.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-31 19:24 UTC by Emmanuel Rodriguez
Modified: 2008-09-04 11:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Emmanuel Rodriguez 2007-01-31 19:24:12 UTC
Please describe the problem:
When performing a drag and drop from a source folder to a target folder that are both in the same local file system Nautilus tries to move the source file. This is true even if the source file is in the folder of another user and that we only have read access to both the source folder and the source file.


Steps to reproduce:
1. Create two different user accounts for example 'clark' and 'kent'.
2. Have the user 'clark' create a local folder named 'source' and a file named 'source-file.txt' inside that very same folder. 
3. Give the ownership of the folder and the file to the user 'clark': chown -R clark source/
4. Give the right permissions in order to let the user 'kent' read the file 'source-file.txt': chmod -R a+rX 'source/'
5. Have the user 'kent' create a folder named 'target' and make sure that the folder is a local folder, preferably in the same file system as the folder 'source'
5. Have the user 'kent' browse both folders with nautilus.
6. Have the user 'kent' initialize a drag motion of the file 'source-file.txt' into the folder 'target'.


Actual results:
Nautilus will fail to perform the operation. A dialog shows up:
Title: Error while moving.
Content: "source-file.txt" cannot be moved because you do not have permissions to change it or its parent folder.

Expected results:
I would expect the file to be copied and not moved.

Does this happen every time?


Other information:
Comment 1 Reinout van Schouwen 2007-03-12 21:51:18 UTC
Confirming. This is pretty ugly.
Comment 2 Nelson Benitez 2008-09-04 11:30:44 UTC
This is a dup of bug 314139
Comment 3 Reinout van Schouwen 2008-09-04 11:49:55 UTC
Marking duplicate per comment #2.

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