[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wo wird $DISPLAY für einen normalen user gesetzt?





Le 02/08/2019 à 18:57, Richard Kraut a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Am Freitag, den 02.08.2019, 16:28 +0200 schrieb Jochen van Geldern:

gksu war nur ein Beispiel. Mit Sicherheit gibt es noch andere Programme
die das können.

kdesu gibt es noch. Und neben su und sudo noch pkexec.

Um ein grafisches Programm mit Root-Rechten zu starten hat bei mir der Aufruf
"pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY programm" funktioniert.
Sollte aber auch mit su und sudo so tun.

- --
MfG Richi


Hallo,

bei mir unter unstable:

$ pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY vlc
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/env' as the super user
Authenticating as: ,,, (klaus)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.

Was bei mir läuft, ist z. B.

$ lxqt-sudo konsole

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'$ lxqt-sudo konsole


oder
lxqt-sudo qemu-system-i386 -m 2048 -usb -hda /dev/sdc

(um eine Distrib. auf USBstick unter qemu zu starten)

Gruß

Klaus


Reply to: