Invocation of applications which require root permitions

Tim Frost timfrost at xtra.co.nz
Fri Jan 6 09:56:37 UTC 2006


On Fri, 2006-01-06 at 12:35 +0300, Jury Levykin wrote:
> . . .
> 
> > I don't think so. You both did some job, but no one knows on what type 
> > of machine you performed and other details, I don't know too much what.
> 
> IBM ThinkPad Z60t
> 
> >
> > I did about 28 installations among 3 or more distributions but 3 
> > principally. What it leads me to say, is that during the several I did 
> > with Ubuntu among which half a dozen just for tests and explore the 
> > install possibilities, expert mode would never ruin a user's 
> > caracteristics.
> >
> > About sudoers file, it has to be edited as root so if you can't use your
> > password it's of no use.
> 
> I have root's permissions:
> $ su -
> Password: **********
> #
> 
> I can use console tools but can not use X tools.
> 
> >
> > What to do ? same as Old Rocker did to solve his recent problem with a 
> > file that he could not reach as root : take a live CD, run the 
> > terminal as root (no password required in a live CD) mount the / 
> > partition of your install in the /mnt of the live CD's / then chroot 
> > it and add a root account :
> > see on the CategoryDocumentation to find the 'HowToRootSudo'. It look 
> > like something like that:
> > $sudo passwd root
> > or $sudo root passwd I'n not sure anymore.
> >
> > Then you can reboot and login as user (Jury how did you login as user 
> > anyhow ?
> 
> I login to X session as user without any problem, but I can not to do it 
> as root.
> I can login to console session (Alt + Ctrl + F2) as root and as user.
> 
>  From X session (xterm):
> ----------------------------------
> jura at thinkpad:~$ su -
> Password:
> root at thinkpad:~# synaptic
> 
> (synaptic:8219): Gtk-WARNING **: cannot open display:

Don't use 'su -' as that does a full root login.

In particular, X authentication settings are lost.

Either run
	su root -c synaptic
or
	sudo synaptic

as they will pass the X DISPLAY and XAUTH settings to the root process.

(Or run synaptic from the menus, which will use gksudo in place of
su/sudo, and will provide the required environment)

> root at thinkpad:~#
> root at thinkpad:~# export DISPLAY=:0.0
> root at thinkpad:~#
> root at thinkpad:~# synaptic
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> (synaptic:8258): Gtk-WARNING **: cannot open display:
> root at thinkpad:~#
> ----------------------------------
> 
> What tools or files I need use to solve this problem?
> 

> Thanks, Jury
> 

HTH 


Tim






More information about the ubuntu-users mailing list