On Sun, 08 Jun 2025 10:45:05 +0200 Francis.Montagnac@xxxxxxxx wrote: > A more proper way to use sudo for that is thus: > XAUTHORITY=${XAUTHORITY:-~/.Xauthority} sudo su root -c gparted > Ie: use su to properly forward the xauth keys. Note that this still assumes that root has access to the user ~/.Xauthority file (or the one defined as $XAUTHORITY). The only added security it does is to restrict the xauth key to the current DISPLAY. -- francis -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue