Bug 103135 - Copying of files should preserve permissions
Summary: Copying of files should preserve permissions
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 51371 113963 118573 121749 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-03 15:18 UTC by Candid Dauth
Modified: 2013-12-15 14:35 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Candid Dauth 2005-04-03 15:18:30 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
OS:                Linux

When I copy directories in Konqueror, their permissions are not preserved. I copied some directories where I didn't have permissions to write to their files but Konqueror changed the permissions and allowed me writing to them. It was very complicated to restore the permissions.

Another feature I'd like would be:
If a file can't be copied because I don't have reading permissions to it, it would be great if I didn't only have the possibility to "skip" or to "cancel" but also to "try nevertheless" --- so kio would change the permissions, then copy the file and then change the permissions back.
Comment 1 Nicolas Goutte 2005-08-06 20:37:46 UTC
Have you the ownership of the directories that you have trying to copy. If not, then permissions cannot be set for the new directories, as you would need to be root to do so. (So I do not think that it is useful to implement such a thing in Konqueror.)

As for the second paragraph, if you cannot read, you cannot read. So you cannot "try" to do anything.

Have a nice day!
Comment 2 Candid Dauth 2005-08-16 22:53:48 UTC
I am not talkng about the ownership, I'm talking about the permissions. And I can change the permissions of the files I copied, because I own them.

Well, if I cannot read a file it may be that I own the file but I don't have read permissions nevertheless. Well, Konqueror could chmod o+r the file, copy it and then chmod o-r it again, both the source and the target file.
Comment 3 Candid Dauth 2005-08-16 22:54:47 UTC
Sorry, forgot, the first paragraph seems already to be fixed. Thanks.
Comment 4 Thiago Macieira 2005-10-06 17:20:06 UTC
*** Bug 113963 has been marked as a duplicate of this bug. ***
Comment 5 former user 2005-12-18 16:37:22 UTC
By default permissions shouldn't be preserved when copying. Its your own new copy and it should get your user id, your default group and the default permissions (umask).

What you want is to have an option like the --preserve-permissions (-p) option  with the cp command in konqueror.

#51371 is a duplicate
Comment 6 Tommi Tervo 2005-12-18 17:21:06 UTC
*** Bug 51371 has been marked as a duplicate of this bug. ***
Comment 7 Thiago Macieira 2005-12-18 18:21:08 UTC
*** Bug 118573 has been marked as a duplicate of this bug. ***
Comment 8 Thiago Macieira 2005-12-18 18:22:09 UTC
Copying does not preserve group information, but does preserve file permissions.

Changing this to full bug because the behaviour is inconsistent: it should be one way or another.
Comment 9 Tommi Tervo 2006-02-11 16:18:16 UTC
*** Bug 121749 has been marked as a duplicate of this bug. ***
Comment 10 Candid Dauth 2006-06-16 16:54:14 UTC
Maybe an additional functionality would be good to preserve group information and permissions. An additional menu item «Copy preserving attributes», or a shortcut which copies preserving those things.
Comment 11 Dawit Alemayehu 2013-12-15 14:35:34 UTC
KDE 3 is no longer maintained and I cannot reproduce in KDE 4. I do not see any inconsistency. Both permission and ownership are set to the copiers own default permission and ownership settings.