Bugzilla – Bug 334382
Invalid ~/.Xauthority file prevents running root applications such as YaST
Last modified: 2010-08-19 15:04:13 UTC
[This bug is not consistently reproducible] It appears to be possible for the ~/.Xauthority to to get into a state that prevents accessing X from root. This prevents running admin apps such as YaST, with errors such as the following: Invalid MIT-MAGIC-COOKIE-1 key (y2controlcenter-gnome:18198): Gtk-WARNING **: cannot open display: This has happened to me once -- however, the problem with GUI root commands not doing anything after the gnomesu password entry has happened in several sessions, though I did not investigate it at the time. Removing ~/.Xauthority and restarting X fixed the problem. The invalid ~/.Xauthority file is attached. Note: I'm not running xgl, and I'm using auto-login.
Created attachment 178848 [details] the bad ~/.Xauthority file
User reports not having run any KDE applications either. I'm keeping an eye on this in case there are more reports, or we find out how the cookie file got into a bad state.
It happened again after reboot (and auto-login).
I'm going to try and reproduce this bug using auto-login.
I've run into this bug on another machine without auto-login. Also a clean install, but with home directory mostly copied from the machine this bug first happened on. N.B. the problem only happened once so far on this machine; it's been working fine most of the time.
*** Bug 223341 has been marked as a duplicate of this bug. ***
I don't know if this is related, but I've just had another similar error preventing me from running GUI apps as root: No protocol specified (y2controlcenter-gnome:5631): Gtk-WARNING **: cannot open display: Either I'm incredibly unlucky, or this is a severe bug.
I am pretty sure to have the same bug: After installing my system (+Gnome) I updated it (in Gnome with the applet). After that I was no longer available to access yast2 or any other application via gnomesu. After finding this bugreport I tried to rename this Xauthority file, restarted X and now it works fine again. Bye
Has anyone seen this in openSUSE 11.0 or newer?
No, I haven't seen this since, but that may be because I haven't used auto-login since the second time this happened...
Closing - no dupes on maintained products.