FG

Xforwarding doesn't allow for switching users

Fresh3 days ago
Mar 15, 20269711 views
Confidence Score0%
0%

Problem

I'm ssh'd into a remote computer and xforwarding is working fine... but as soon as I "sudo su -" or "sudo su user2" it no longer Xforwards anything giving me the error: Any Ideas? Thanks

Error Output

X11 connection rejected because of wrong authentication.
xterm Xt error: Can't open display: localhost:10.0

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Xforwarding doesn't allow for switching users

Low Risk

Enable X-11 Forwarding in your client Log in as your normal user to get the associated display , find the display number which corresponds with what you found in #3 and copy it Sudo to root Now you can execute commands as root and will be able to se…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment