You are not logged in.

#1 2020-12-14 13:57

elektron
Member
Registered: 2018-01-24
Posts: 17

dolphin 20 root

how can i run as root?

Offline

#2 2020-12-14 17:29

wove
Member
From: Minnesota
Registered: 2019-12-31
Posts: 67

Re: dolphin 20 root

Open it from the command line with "sudo dolphin"

bill

Offline

#3 2020-12-14 17:41

elektron
Member
Registered: 2018-01-24
Posts: 17

Re: dolphin 20 root

no no. not possibile.

Offline

#4 2020-12-14 22:53

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Re: dolphin 20 root

sudo is for running terminal applications as superuser.
If you want to run graphical application in Trinity desktop environment, you should type Alt+F2, then tdesudo dolphin.


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#5 2020-12-15 11:58

elektron
Member
Registered: 2018-01-24
Posts: 17

Re: dolphin 20 root

i am using kde plasma desktop. (q4os 4.1) dolphin not runing on root. why? double commander does.

Offline

#6 2020-12-15 13:07

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: dolphin 20 root

elektron wrote:

i am using kde plasma desktop. (q4os 4.1) dolphin not runing on root. why? double commander does.

KDE policy. Neither will Kate nor any other KDE program; they just won't.  It's a KDE thing. If you want/need to run some app in KDE on root, do it like this:

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin

Copy/paste that in konsole, press enter and voilà! Change dolphin to use it with other app, i.e. Kate.

You could also put that in a script:

#!/bin/bash
xdotool windowminimize $(xdotool getactivewindow) #to minimize konsole once the rooted app starts.
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true $1 #"$1"=app name

name that something like run_as_root.sh, give it executable permissions

chmod +x run_as_root.sh

and launch the app you want to launch as root like:

$ ./run_as_root.sh dolphin

Hope this helps! smile

Last edited by Tolkem (2020-12-15 14:48)

Offline

#7 2020-12-15 17:08

elektron
Member
Registered: 2018-01-24
Posts: 17

Re: dolphin 20 root

not working. only user mode.
"Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities."
i dont understand.

Last edited by elektron (2020-12-15 17:08)

Offline

#8 2020-12-15 17:37

Rademes
Member
From: Latvia
Registered: 2015-12-13
Posts: 636

Re: dolphin 20 root

There is an interesting article about this: https://phabricator.kde.org/R40:9adcebd … 46b0e12a7e
KDE security team member thinks, that running GUI applications as root is a huge security risk. Especially the X server is not secured for that.

Last edited by Rademes (2020-12-15 17:37)


Before asking for help please read this topic: https://www.q4os.org/forum/viewtopic.php?id=3502   If you have problems with WiFi network, try to install the Network Manager using Q4OS Software Centre.

Offline

#9 2020-12-15 18:01

Tolkem
Member
Registered: 2019-10-06
Posts: 487

Re: dolphin 20 root

elektron wrote:

not working. only user mode.
"Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities."
i dont understand.

It works for me

nf923N8.png

I get the password dialog box

kwH8mmd.png

and a rooted-dolphin window is launched

azNQWCD.png

Check again, maybe a typo or something.

There is an interesting article about this: https://phabricator.kde.org/R40:9adcebd … 46b0e12a7e
KDE security team member thinks, that running GUI applications as root is a huge security risk. Especially the X server is not secured for that.

There's another way to accomplish this as explained here https://bbs.archlinux.org/viewtopic.php … 28#p999328

Running GUI apps either GTK or QT or anything else as root has been and always will be risky, as you could damage your system beyond repair. When people talk about "huge security risk" they are usually referring to servers and login via ssh into them, then running a GUI as root which is of course a very bad idea. However, if you're the only one using your computer/OS, and you don't ssh into it, then it is probably safe to run GUI apps in a root environment, you just need to be careful when doing so and be aware that whatever happens after that is all on you.

Last edited by Tolkem (2020-12-15 18:08)

Offline

Board footer

Powered by FluxBB