Xauth command »
Contents
How do I use Xauth?
- Open two xterms on the workstation that you are sitting at. For this example, we will assume that it is called mysun. Do not telnet to empire, or to openlab, this will not work.
- In the first window, type:
xauth list mysun.ics.uci.edu:0The output will look something like:
mysun.ics.uci.edu:0 MIT-MAGIC-COOKIE-1 c24f236fe6f9186c465452bff- Using the left button of your mouse, highlight the entire line of output. (If there is more than one line, pick the one containing the string MIT-MAGIC-COOKIE-1).
- In the second window, gsu to the team/project account that you are using.
- In the project account window, type the following command:
setenv DISPLAY mysun.ics.uci.edu:0- Then type in the words
xauth addand paste in the line you highlighted above. The complete command should look like:xauth add mysun.ics.uci.edu:0 MIT-MAGIC-COOKIE-1 c24f236fe6f9186c465452bff- Copy the line above, and add the string /unix to the end of the hostname. The command should look like the following:
xauth add mysun.ics.uci.edu/unix:0 MIT-MAGIC-COOKIE-1 c24f236fe6f9186c465452bff- You should now be able to run applications from your team account, and have them display on the screen of the workstation in front of you.
Where can I get more information?
NACS has a good helper page on Security: xhost & xauth