Back in the day, using Xorg. If you login to the console as a user, and then 
run an X app as root, then root can't talk to the X server because it doesn't 
have the shared secret in the user's ~/.Xauthority file. For non-NFS user home 
directories you can get around this by setting the XAUTHORITY environment for 
root to point at the user's ~/.Xauthority file, or just copy the user's 
~/.Xauthority to root's home directory. I don't know what happens with Weyland, 
but one can disable, take care though as some Xorg drivers are in bit-rot mode.

IIRC, YMMV, etc.

The University of St Andrews is a charity registered in Scotland, No: SC013532

On 15/01/2022, 20:25, "Mailing list for Scientific Linux users worldwide on 
behalf of Nico Kadel-Garcia" <[email protected] on 
behalf of [email protected]> wrote:

    "su -" won't work, nor will "sudo" for X applications. "ssh -X -l
    root" normally will, might try that to run root applications as a
    non-root GUI user.

Reply via email to