Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
admin_grundlagen:polkit [2019/12/23 09:10] ingo_wichmann |
admin_grundlagen:polkit [2022/08/23 06:52] holger_jakobs |
||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
Root-Rechte für Konsolenprogramm graphisch erfragen: | Root-Rechte für Konsolenprogramm graphisch erfragen: | ||
pkexec vim /etc/shadow | pkexec vim /etc/shadow | ||
+ | | ||
+ | Anmerkung: Der Aufruf sollte besser ''vipw -s'' lauten, um die Datei ''/etc/shadow'' zu bearbeiten. | ||
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 | 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 | ||
)) | )) | ||
+ | //getestet mit Wayland// | ||
xhost +SI:localuser:root | xhost +SI:localuser:root | ||
pkexec env DISPLAY=$DISPLAY gedit /etc/shadow | pkexec env DISPLAY=$DISPLAY gedit /etc/shadow |