Siduction Forum
Siduction Forum => Software - Support => Topic started by: Lanzi on 2020/09/26, 00:06:11
-
I installed some weeks agoo the new isobuilt iso.SInce KDESU isn't integrated any longer I look for ideas to start krusader in root mode.
- Starting from a root konsole causes problems when coping and deleting files. Sometimes it down't work (with and without error message.
- Starting from Krusader (with the root krusader icon) doesn't work. My password is not accepted.
- An actual kubunto LTS let me start krusader from the root icon within krusader. So there should be a solution.
Ideas?
-
Which password isn't accepted?
The #root pw or the $user pw?
Maybe you need the $user-pw like sudo wants?
But deleting files or copy/moving them as root can also be done by using the konsole, like cp. mv or rm.
And IIRC, kde decided not to allow such actions in graphical tools because ..........
-
You could try if this solution from debianforum.de (https://debianforum.de/forum/viewtopic.php?f=29&t=175833&hilit=krusader#p1225239) works for you:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader
-
Which password isn't accepted? The #root pw or the $user pw?
Both are not accepted:
- the rootpassword lets the windows freeze for about 10s, then it is popping up again
- the user password gives me the following:
"Der Zugriff wird verweigert.Möglicherweise wurde das falsche Passwort verwendet. Bitte versuchen Sie es erneut. Auf manchen Systemen ist die Zugehörigkeit zu einer speziellen Gruppe (oft: wheel) für das Verwenden dieser Anwendung notwendig".
I tried to add my user to the group "wheel" by "usermod -aG wheel USER".
Nothing
You could try if this solution from debianforum.de works for you:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader
That open also a root-krusader. I will test, if it performs all tasks. Thanks!
Honestly I would prefer a solution, without a console window open. By clicking on the root-krusader icon or with KDEsu. Does anybody how to archive this?
My old siduction which I now replaced could still use KDEsu, but I do not know, what to do to make it run on my new system.
In /usr/lib/x86_64-linux-gnu/libexec/kf5/ there is a programm called KDESU.
I found in this thread: https://askubuntu.com/questions/1044354/kdesu-not-working
kdesu is installed (as part of kde-cli-tools) but is not in your $PATH by default. You can access the binary from /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu (and create a symlink in your /usr/local/bin directory
So I linked it to usr/local/bin. The KDE-Su window opens, like klicking on the root-krusadericon (see above), and both my passwords are not accepted.
-
Honestly I would prefer a solution, without a console window open.
Where's the problem? Create a .desktop file (https://wiki.ubuntuusers.de/.desktop-Dateien/) with the pkexec line in "Exec=" and "Terminal=false"!
-
Don't do this! :P ;D
There's a KDE root actions service menu which allows you to right click in Dolphin and perform a few tasks like opening Dolphin or Konsole in root mode. I think it just uses pkexec commands like der_bud posted.
Dirty hack but I've been using without any problems for a long time now. It's from one of the devs at MX Linux.
http://mxrepo.com/mx/repo/pool/main/k/kde-servicemenu-rootactions/
-
Sorry for the late repley.
@sunrat: i looked at the repo, and the software was last developed 2015... I am uncertain... and it only works from Dolphin? could you please check, if the contextmenu appears from krusader?
@Axt:
i didn't suceed:
my file is
#!/bin/sh
"Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader" "Terminal=false"
I also tried:
#!/bin/sh
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader
Terminal=false
As well as both without "#!/bin/sh"
I made the file executeable, but in best case "kate" was opend. What did I do wrong?
-
@sunrat: i looked at the repo, and the software was last developed 2015... I am uncertain... and it only works from Dolphin? could you please check, if the contextmenu appears from krusader?
Oops, my bad. The latest version is from 2019 for the current MX. Took a bit to find as it's under "r" in the repo, go figure. I actually have the 2017 version installed in siduction and it works fine. Guess I should update it.
http://mxrepo.com/mx/repo/pool/main/r/rootactions-servicemenu/kde-servicemenu-rootactions_2.7.3+p8+git20160617.0159-1mx19+3_all.deb
I don't have Krusader installed so can't test it. Presumably if Krusader supports KDE service menus it should work. I'm pretty sure the MX version is just an updated fork of one from the KDE Store. A few of the MX devs use Dolphin even though their default DE is Xfce as it's miles better than Thunar. MX also has recently released a KDE version.
-
@Axt:
i didn't suceed
The pkexec line as such works in a terminal. As a call in a .desktop file additional work is necessary:
pkexec command in a .desktop file (https://askubuntu.com/questions/641593/pkexec-command-in-a-desktop-file/641616#641616)
Tested. Works.
Btw., lest you forget that this krusader instance runs as root, you should import a different color scheme (midnight_commander.color). Apart from that, let it run anyway only as long as it is really needed.
-
Mal kurz zu sudo zurück,
bin mir nicht sicher ob Du weißt was Du da tust!
I am not shure if you know what you are doing there and how to use sudo!
Both are not accepted:
- the rootpassword lets the windows freeze for about 10s, then it is popping up again
- the user password gives me the following:
"Der Zugriff wird verweigert.Möglicherweise wurde das falsche Passwort verwendet. Bitte versuchen Sie es erneut. Auf manchen Systemen ist die Zugehörigkeit zu einer speziellen Gruppe (oft: wheel) für das Verwenden dieser Anwendung notwendig".
I tried to add my user to the group "wheel" by "usermod -aG wheel USER".
Nothing
1. gib uns die Ausgabe von 'groups' als entsprechender $user
give us the output of groups as $user
2. die Ausgabe von 'cat /etc/sudoers' als #root, also entweder sudo cat ...., oder halt su <pw> und dann cat /....!
and the output of 'cat /etc/sudoers' as #root
-
Mal kurz zu sudo zurück,
Ach, wheel (https://en.wikipedia.org/wiki/Wheel_(computing)#Wheel_group) ist doch auch toll (ich bin drin, grin)...wenn man nicht Debian fährt. ;-)
Lanzi, es ist Dir alles genannt worden:
- pkexec-Zeile, die man so in einem Terminal ausführen könnte
- Wiki-Link zum Aufbau eines .desktop-Files
- Link zur Besonderheit von pkexec in .desktop-Files
Links werden nicht aus Langeweile gepostet.
-
Guys, this is Software Support (EN) subforum and the thread started in English. I'm used to running translator when reading German subforums but this is just weird.
-
@sunrat
sorry, it was my fault!
-
@Lanzi,
I looked into the setup menu of the krusader.
"user-action menu"
If you set up sudo properly it will work!
-
Thanks for your help. I was away for three weeks. I will check everything this weekend.