Note to self... maybe others...
Apr. 1st, 2014 01:52 pmWarning: contains computer jargon and dubious security practices that may disturb sensitive readers...
Had to do a change to a computer system remotely as root, but didn't have the root password (just sudo access). The tool to make the change was only available as a GUI (don't get me started, I have nothing polite to say about Linux systems that cripple themselves with bullshit like that, but it doesn't change the fact that I need to deal with them), so I needed to be able to allow it to use the Xserver running on my PC at home (MobaXterm in this case... a super amazing wow program, fyi). I kept getting the error "X11 connection rejected because of wrong authentication." and everything I tried on my end didn't work. In the end, I realized it was because the root account on the remote system did not have an .Xauthority file, much less a file with the credentials I generated logging in as myself to my account. So, all I needed to do was copy the .Xauthority file from my account (I didn't have to worry about clobbering one for the root account because it didn't have its own) to the root account's home directory, do what I needed to do (the X window popped up fine on my system), and then delete the .Xauthority file(s) from the root account again (two additional .Xauthority related files were also created). Maybe not ideal, but it allowed the job to get done without needing me to go all the way to school in person to deal with it. I have run across situations like this before and have always struggled with it... it is also near impossible to find an answer on the 'net as to how to get around it... so here it is for posterity's sake.
Had to do a change to a computer system remotely as root, but didn't have the root password (just sudo access). The tool to make the change was only available as a GUI (don't get me started, I have nothing polite to say about Linux systems that cripple themselves with bullshit like that, but it doesn't change the fact that I need to deal with them), so I needed to be able to allow it to use the Xserver running on my PC at home (MobaXterm in this case... a super amazing wow program, fyi). I kept getting the error "X11 connection rejected because of wrong authentication." and everything I tried on my end didn't work. In the end, I realized it was because the root account on the remote system did not have an .Xauthority file, much less a file with the credentials I generated logging in as myself to my account. So, all I needed to do was copy the .Xauthority file from my account (I didn't have to worry about clobbering one for the root account because it didn't have its own) to the root account's home directory, do what I needed to do (the X window popped up fine on my system), and then delete the .Xauthority file(s) from the root account again (two additional .Xauthority related files were also created). Maybe not ideal, but it allowed the job to get done without needing me to go all the way to school in person to deal with it. I have run across situations like this before and have always struggled with it... it is also near impossible to find an answer on the 'net as to how to get around it... so here it is for posterity's sake.