There is a 'risk' in running graphical applications launched using sudo. See Running Sudo Graphically by psycho cat.
Announcement
Collapse
No announcement yet.
problem with kdesudo dolphin
Collapse
This topic is closed.
X
X
-
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
-
Originally posted by perspectoff View PostI've used both sudo dolphin and kdesu dolphin interchangeably for a long time (over several versions of Kubuntu) without any problems. I have seen no difference, and there is no difference in ownership.
A lot of files have root permissions. Using Dolphin as root is necessary to manipulate those files.Last edited by kubicle; May 05, 2012, 04:44 PM.
- Top
- Bottom
Comment
-
Originally posted by kubicle View PostIt will work most of the time, but sometimes it causes change of ownerships in files the GUI program accesses during it's normal operation, which can lead to problems (doesn't mean it'll always do so). If you haven't run into a problem, it doesn't mean it doesn't exist.
1. a short script that prints the $HOME environment variable:
#!/bin/bash
echo $HOME
$ sudo ./testscript
/home/username
$ sudo -H ./testscript
/root
$ kdesudo ./testscript
/root
3. So when you launch an app with sudo, it runs as root, but $HOME is still set as user's home directory...and GUI apps (depending on the app of course) may create/modify files in $HOME during their normal operation (caching, configuration etc.) and these may end up being owned by root (as the app is running under UID root)
- Top
- Bottom
Comment
Comment