Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
admin_grundlagen:polkit [2019/12/23 08:46] ingo_wichmann |
admin_grundlagen:polkit [2019/12/23 09:10] ingo_wichmann |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
Debian Paket: policykit-1 | Debian Paket: policykit-1 | ||
- | Root-Rechte graphisch erfragen: | + | Root-Rechte für Konsolenprogramm graphisch erfragen: |
pkexec vim /etc/shadow | pkexec vim /etc/shadow | ||
+ | |||
+ | Root-Rechte für graphisches Programm graphisch erfragen: (( Emmanuele Bassi, GNOME developer: "//there are no *real*, substantiated, technological reasons why anybody should run a GUI application as root. By running GUI applications as an admin user you're literally running millions of lines of code that have not been audited properly to run under elevated privileges; you're also running code that will touch files inside your $HOME and may change their ownership on the file system; connect, via IPC, to even more running code, etc. You're opening up a massive, gaping security hole [...].//" https://bugzilla.gnome.org//show_bug.cgi?id=772875#c5 | ||
+ | )) | ||
+ | xhost +SI:localuser:root | ||
+ | pkexec env DISPLAY=$DISPLAY gedit /etc/shadow | ||
+ | xhost -si:localuser:root | ||