Meta
Categories
Category Archives: unix
X11 connection rejected because of wrong authentication after sudo to another user
Cause: X win cookie not carried over after sudo login as another user. Solutions One: 1. Login as first user (user1). 2. Run ‘echo $DISPLAY’ bash-3.00$ echo $DISPLAY localhost:10.0 2. Run ‘xauth list’ xauth list box.my.com/unix:10 MIT-MAGIC-COOKIE-1 4f76c629f8cdbf26ce4ae646cc24448c box.my.com/unix:11 MIT-MAGIC-COOKIE-1 … Continue reading
Posted in unix
26 Comments