Bug 64211

Summary: drag and drop overrides directory permissions
Product: [Applications] konsole Reporter: Alexandros Papadopoulos <sms_temp>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.2.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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).