Bug 64211 - drag and drop overrides directory permissions
Summary: drag and drop overrides directory permissions
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.2.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 19:16 UTC by Alexandros Papadopoulos
Modified: 2003-09-13 21:09 UTC (History)
0 users

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 Alexandros Papadopoulos 2003-09-13 19:16:32 UTC
Version:           1.2.3 (using KDE 3.1.3)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.1 20030722 (Debian prerelease)
OS:          Linux (i686) release 2.4.22

I'm running X and KDE as a regular mortal user. If I have a root shell active in konsole, and I drag'n'drop something from my Dekstop or file manager (Konqueror) into the konsole window, it *overrides* the root directory permissions, and happily writes the file!

How to reproduce:
=================

+ Start normal KDE session as regular user
+ Open Konsole, and use su - to become root. You're now in root's directory.
+ Drag'n'drop a file from your desktop to the konsole.
+ Do a directory listing of the /root directory - the file is there!

Expected behavior:
==================

The operation should return a "Permission Denied" or similar message, WITHOUT writing the file.

I don't even understand how this is done in the first place, since from both the shell and Konqueror I (naturally) cannot write stuff to /root ...
Comment 1 Stephan Binner 2003-09-13 21:09:35 UTC
KDE doesn't overwrite root permission, you execute the copy operation as root. 
DnD does nothing more than pasting the copy command into your root shell (if 
you choose "cp" in the popup).