I merged .Xauthority between my root and user accounts, not sure how to undo it.
So, I followed this:
Code:
echo $DISPLAY # you'll be needing this value 3 lines below |
Update: checked a few things, discovered that .Xauthority in my user's directory is owned by root, and has no read, write, or executable permissions. I tried chown [my user] .Xauthority and it changed the ownership to myself, then sudo chmod -0755 .Xauthority and it didn't change anything. Changed to su, and ran it again, and it still didn't work. I'm back to square one.
|
I'm not clear what you are trying to accomplish and why you would want to share your .Xauthority with root. I hope it isn't to run your gui as root. Anyway, on my machine .Xauthority looks like this:
Code:
~$ ls -l .Xauthority jdk |
yes, probably there is a much better way to accomplish what do you really need.
|
Quote:
Code:
~$ ls -l .Xauthority Quote:
|
Quote:
Quote:
1) 'xauth -f ~/.Xauthority list', # list contents 2) 'xauth -f ~/.Xauthority remove some.host.name:0', # remove entry for "some.host.name:0". |
Quote:
step 1) didn't produce anything. I'm assuming it was supposed list the contents of the file. |
Quote:
Quote:
Code:
stat ~/.Xauthority; strings ~/.Xauthority |
Quote:
Quote:
Code:
File: '.Xauthority' Code:
ra-laptop |
'stat' shows the file is still owned by group root instead of your user and has zero access perms instead of octal 0600. 'strings' shows two authorization cookies but only one hostname so that can't be right. Maybe it would be quicker to just generate a new file.
|
Quote:
|
as a normal user run
Code:
mv ~/.Xauthority ~/.Xauthority.old Code:
mv /home/slacker_/.Xauthority /home/slacker_/.Xauthority.old it might cause all kinds of problems |
Quote:
Just delete the file, logout, and login again. The GUI login will create another one. And don't merge Xauthority files. You are far more likely to destroy the key you need to keep. |
Quote:
|
Quote:
A. Their age. How recent is the guide? B. There's more than one way to skin a potato. jdk |
All times are GMT -5. The time now is 07:36 PM. |