-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bill Roberts wrote: | When I'm logged on as a user, and I try to open gvim or firefox by | su'ing or sudo'ing as root, I get the following error. | | E233: cannot open display | | I used to be able to do this, but there was a tightening of security | at some point, and now I cannot. I am using xfce4. | | Is there some sort of workaround? Currently, I have to log off as | user, and log in as root. The only reason I normally have to do either | of these things is to change certain settings in firefox, or when I am | copying some code from the internet into a file. The copy operation | works nicely with gvim, but gets messed up in vim.
Besides all the other suggestions in this thread you can also use xhost to allow every connection from localhost. This is secure unless you don't want to allow every local user to access to your X-server. Use the following command (e.g. in your .xsession file):
xhost local:
Regards, Karsten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCJJKSgUNlsZQzobwRAiRtAKCnu+efvyJpOlbXkIZqmXMST2Nu4wCeOkkc 5iESFGhS5CJW+zKUoP8TpR8= =q0Vw -----END PGP SIGNATURE----- -- gentoo-user@gentoo.org mailing list