Oops! (Re: Repair Grub Files?)

Peter Garrett peter.garrett at optusnet.com.au
Sat Jun 2 01:39:12 UTC 2007


On Fri, 1 Jun 2007 11:38:20 +1000
erik at dd.nec.com.au (Erik Christiansen) wrote:

> On Wed, May 30, 2007 at 10:55:47AM +1000, Peter Garrett wrote:
> > Perhaps someone can explain how running an X app as root
> > ( sudo su) works in this situation - normally I would expect the X server
> > to refuse connections from root in another user's X session  ( ??? )
> 
> Peter,
> 
> What does "xhost" display in that situation?

On Feisty 7.04, in GNOME logged in as my user:

peter at prospero:~ $ sudo -i
root at prospero:~# xhost
access control enabled, only authorized clients can connect
 
This is the same whether "sudo su" or "sudo -i" is used to get a root
shell. No hosts have been added to the access list.

Derek indicated that he found he could not start "kate" from a root prompt
- I wonder if this depends on KDE/GNOME ? Or alternatively, whether he was
using a "true" root shell from "su" , having set a root password?

I'm pretty sure that on Dapper any attempt to start a GUI app from a root
shell, while in a user's session, was refused... and that would be my
expectation, so I find this puzzling.

Peter





More information about the ubuntu-users mailing list