Kate and dolphin as root

Kernels & Hardware, configuring network, installing services

Kate and dolphin as root

Postby djevil1 » 2018-04-10 11:14

Hi,
I want to use kate and dolphin as root.

I know it may be insecure.

But it is not a productive system.

I need it to write and test scripts, that will be copied later on a productive system.

How can I bypass that restrictions?
djevil1
 
Posts: 12
Joined: 2018-04-10 10:53

Re: Kate and dolphin as root

Postby Hallvor » 2018-04-10 11:18

I haven't done that in a long time, but I did run a few GUI applications with kdesu, e.g. kdesu dolphin in the past. I don't know if it still works. Do not run GUI applications with su.
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 798
Joined: 2009-04-16 18:35
Location: Norway

Re: Kate and dolphin as root

Postby kopper » 2018-04-10 11:27

Code: Select all
apt show kdesudo

You could just execute your script with sudo. I don't get why you have to run your development environment and file manger as root. Maybe I'm ignorant.
Debian 9.4 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian
kopper
 
Posts: 113
Joined: 2016-09-30 14:30

Re: Kate and dolphin as root

Postby djevil1 » 2018-04-10 12:05

@Hallvor
No, kdesudo does not work with kate and dolphin anymore..

@kopper
Having an editor with syntax highlighting, mouse support, line numbers, 32bit colors, .... need more arguments?
However if you use vi for ten years, I probably cannot convince you.. ;)
djevil1
 
Posts: 12
Joined: 2018-04-10 10:53

Re: Kate and dolphin as root

Postby Hallvor » 2018-04-10 15:09

djevil1 wrote:@Hallvor
No, kdesudo does not work with kate and dolphin anymore..

@kopper
Having an editor with syntax highlighting, mouse support, line numbers, 32bit colors, .... need more arguments?
However if you use vi for ten years, I probably cannot convince you.. ;)


At least it is possible to use Krusader. It has its own root mode.
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 798
Joined: 2009-04-16 18:35
Location: Norway

Re: Kate and dolphin as root

Postby djevil1 » 2018-04-10 16:39

krusader, sounds good, thx!
djevil1
 
Posts: 12
Joined: 2018-04-10 10:53

Re: Kate and dolphin as root

Postby roseway » 2018-04-10 16:57

Code: Select all
/usr/lib/kde4/libexec/kdesu dolphin


That works

I would make this easier by adding a link to kdesu in /usr/bin:

Code: Select all
# ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu
Eric
User avatar
roseway
 
Posts: 1490
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: Kate and dolphin as root

Postby stevepusser » 2018-04-10 16:58

Kdesu doesn't work with Dolphin on KDE 5 any longer, for some odd reason. The icons turn out to be invisible for when you try that.

Just edit your script in your home folder as a regular user, then copy it in the terminal to its system location.

Well, OK, if you don't want that, you can use the Root Actions service menu package. It adds Root Actions right-click context menus that lets you do what you requested, and uses pkexec to work around the problems with the older tools. It's not in Debian, but is in MX 15/16 for Jessie and mx17 for Stretch:

http://mxrepo.com/mx/repo/pool/main/r/r ... rvicemenu/
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Notepadqq 1.2.0, Pale Moon 27.9.0, KeePassXC 2.3.1, Calligra 3.1, VLC 3.0.1, Firefox 59.0.2, Shotwell 28.2
User avatar
stevepusser
 
Posts: 9458
Joined: 2009-10-06 05:53

Re: Kate and dolphin as root

Postby djevil1 » 2018-04-10 20:00

@ roseway
No, kdesu does not work with kate or dolphin anymore

@stevepusser
Haven't tried the root actions menu yet, but I will..

because..

@hallvor
krusader seems to be a good alternative to dolphin and kate,( if not even much better), but will take some time to figure it out..

but thank you all very much!
djevil1
 
Posts: 12
Joined: 2018-04-10 10:53

Re: Kate and dolphin as root

Postby roseway » 2018-04-10 20:56

Kdesu works fine with Dolphin (and other GUI programs) on Stretch here.
Eric
User avatar
roseway
 
Posts: 1490
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: Kate and dolphin as root

Postby Hallvor » 2018-04-11 04:16

roseway wrote:Kdesu works fine with Dolphin (and other GUI programs) on Stretch here.


Yes, running the full path does indeed work in Stretch.
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 798
Joined: 2009-04-16 18:35
Location: Norway

Re: Kate and dolphin as root

Postby roseway » 2018-04-11 05:09

That's why I suggested adding a symlink to it in /usr/bin.
Eric
User avatar
roseway
 
Posts: 1490
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: Kate and dolphin as root

Postby wizard10000 » 2018-04-11 08:57

Privilege escalation in dolphin and kate is disabled by default these days. It still works in Stretch but not in Buster or later.

Reason? wayland doesn't allow privilege escalation in the GUI so neither kdesu nor kdesudo will work with dolphin or kate.

Since I run Sid I have openbox installed as a backup; I just use pcmanfm and geany to do gooey root things in KDE.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1268
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: Kate and dolphin as root

Postby Head_on_a_Stick » 2018-04-11 09:00

wizard10000 wrote:wayland doesn't allow privilege escalation in the GUI

Just allow root access, that'll learn it:
Code: Select all
xhost +local:

:mrgreen:

Warning: don't try this at home kids!
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 7413
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Kate and dolphin as root

Postby wizard10000 » 2018-04-11 09:34

Head_on_a_Stick wrote:...
Code: Select all
xhost +local:

:mrgreen:


Here, have an upvote :mrgreen:
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1268
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!


Return to System configuration

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable