![]() Suppose you want to brute force get yourself a connection with X. That command extracts the magic cookie ( xauth list) from your main user and adds it ( xauth add) to where the other user can get it. You may also need to unset XAUTHORITY in that shell too. Try this, running as your original user, to copy the X11 cookie to the other account: su -c "unset XAUTHORITY xauth add $(xauth list)" The other system user does not have access to this magic cookie because the permissions are set so that it is only accessible to the user who started the desktop environment (which is as it should be). Applications need a "magic cookie" (secret token) in order to talk to the X11 server so that other processes on the system running under other users cannot intrude on your display, create windows, and snoop your keystrokes. The error message No protocol specified sounds like an application-specific error message, and an unhelpful one at that, but I am going to guess that the error is that the application is unable to contact your X11 display because it does not have permission to do so because it's running as a different user. 500 is just fine as a UID, and that UID doesn't make it a 'non-login' user except in the eyes of the default settings of some few display managers. ![]() The problem is not occurring because of the UID of the user.
0 Comments
Leave a Reply. |