Re: Strange xauth problem
Robert Moonen <[email protected]>
| Newsgroups | gmane.org.user-groups.mlug.main |
|---|---|
| Message-ID | <[email protected]> |
Jafaruddin Lie wrote: > I stumbled into this weird problem, wondering if anyone can help me. > I put my local user account into the wheel group and ran visudo to > enable wheel group to run commands with root privilidges. Running > commands from terminal (xterm, konsole or gnome-terminal), except those > requiring X or GUI works fine. For those that didn't (lets say for > example I ran > Code: > > sudo system-config-network > > ), they gave out this message: > Code: > > [jafar@jafar ~]$ sudo system-config-network Xlib: connection to ":0.0" > refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key ERROR: Unable to > initialize graphical environment. Most likely cause of failure is that > the tool was not run using a graphical environment. Please either start > your graphical user interface or set your DISPLAY variable. > > > > And this is what > Code: > > tail -f /var/log/Xorg.0.log > > shows: > > Code: > > AUDIT: Sat May 7 00:54:23 2005: 9718 X: client 20 rejected from local > host Auth name: MIT-MAGIC-COOKIE-1 ID: -1 AUDIT: Sat May 7 00:54:24 > 2005: 9718 X: client 20 rejected from local host Auth name: > MIT-MAGIC-COOKIE-1 ID: -1 > > > > I have tried copying .Xauthority from root to my local account, but > still no go. It looks like you're trying to access an X display statred by jafar as root, if you log out of X and log back in as root, then it should work OK. but this is a dangerous workaround. -- regards Robert G. Moonen registered Linux user number 298132 On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to comprehend the kind of confusion of ideas that could provoke such a question. Charles Babbage.