Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Willie Wong
On Tue, Mar 01, 2005 at 05:45:08PM -0500, A. Khattri wrote: > I usually do > > :set noautoindent > > from within vi when I need to paste in insert mode. In vim at least, I believe :set noai also works as a nice short hand. Another nice command is :set paste which implies noai but also prev

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread A. Khattri
On Tue, 1 Mar 2005, darren kirby wrote: > quoth the Bill Roberts: > > > > > Alternately, is there some way of copying nicely into vim from code I > > find on the internet. > > Edit /etc/vim/vimrc and comment out with a double quote mark --> " the line: > set ai " Always set auto-

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread darren kirby
quoth the Bill Roberts: > > Alternately, is there some way of copying nicely into vim from code I > find on the internet. Edit /etc/vim/vimrc and comment out with a double quote mark --> " the line: set ai " Always set auto-indenting on Now code will paste properly. > Thanks in

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Bill Roberts
On 17:01 Tue 01 Mar , Ulrich Anhalt wrote: > normally it should work with sudo. Please comment out the line > Defaults env_reset > in your /etc/sudoers (if it isn't) and try again > Ulli Your suggestion for /etc/sudoers solved the problem for gvim, but firefox was very unhappy, r

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Karsten Baumgarten
-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

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Ulrich Anhalt
Hi Bill, normally it should work with sudo. Please comment out the line Defaults env_reset in your /etc/sudoers (if it isn't) and try again Ulli Am Dienstag, den 01.03.2005, 10:25 -0500 schrieb Bill Roberts: > On 10:02 Tue 01 Mar , Christopher Fisk wrote: > > On Tue, 1 Mar 200

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Peter Karlsson
On Tue, 1 Mar 2005, 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 usin

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Neil Bothwick
On Tue, 1 Mar 2005 10:25:12 -0500, Bill Roberts wrote: > I've also stayed away from xhosts for security reasons. Is there any > secure way of using it? emerge sux Note: that is a command, not an opinion ;-) -- Neil Bothwick Use Microsoft . . . . . pgpK2XULr39Yg.pgp Description: PGP signatu

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Peter Karlsson
On Tue, 1 Mar 2005, Bill Roberts wrote: I've also stayed away from xhosts for security reasons. Is there any secure way of using it? You could (as root) copy the mit-magic cookie to root's directory (/root). This is usually the recommended way, from a security point of view. X clients scan the ho

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Benjamin Sobotta
Hi! If you're not on an outside machine and security is not really a concern for the moment you can try "xhost +" as the user and then su to root. This disables access control; you might want to be careful. When you are done you can reenable it by "xhost -" after root logged off. This is a rath

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Bill Roberts
On 10:02 Tue 01 Mar , Christopher Fisk wrote: > On Tue, 1 Mar 2005, 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 > > This is an X security thing. Instead

RE: [gentoo-user] Root cannot open display

2005-03-01 Thread Dave Nebinger
> 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 By default X.org disables tcp access. To enable root (or another user) to open windows on the display you need to: 1. remove the "-nolisten

Re: [gentoo-user] Root cannot open display

2005-03-01 Thread Christopher Fisk
On Tue, 1 Mar 2005, 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 This is an X security thing. Instead of launching Firefox from a su'd session, why not install sudo and run s