Re: running programs from user acctount as root



Andreas Bernauer wrote:
Ashley Pritchard wrote on Sun, Jun 24 2007 at 20:59 (-0700):
I dissabled seLinux & thistime refused to
download & install any updates to seLinux but yet again I am not able to run
the package updater or any other program that requires root access from my
user account. I am entering the password correctly & am able to login as
root in the terminal but when I type the command 'pup' for the package
updater I get the following:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

This looks like 'root' is not allowed to connect to the X-server,
because someone else (the regular user) is using it currently.

Logged in as the regular, does 'xhost +localhost' in an xterm resolve
that problem?

Alternatively, using 'kdesu pup' may help, but I've never tried it.

Andreas.


Access to the X server is controlled by a "magic cookie". If you
change to root in an xterm using su or su -, root is given a copy of
this "magic cookie". (There will be a file created in /root called
.xauth<something>.) This gives root access to the X server. If you
log in at the cli, without having changed to root in an x term, root
will not have a copy of the current cookie. Also, this "magic
cookie" is generated each time a user logs in using the gui, or
starts X from the cli. Each X secession has its own "magic cookie".
You can see what file contains the "magic cookie" by running
"echo $XAUTHORITY".


This is a security feature. You can man xauth for more details.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: running programs from user acctount as root
    ... the package updater or any other program that requires root access from my ... because someone else (the regular user) is using it currently. ...
    (Fedora)
  • Re: Cookies problem
    ... if you set a cookie from ... a page in your website domain root directory then load a webpage from ... French and I find that my pages in the sub directories are not getting ...
    (comp.lang.javascript)
  • Re: FormsAuthentication.RedirectFromLoginPage
    ... creating the cookie, creating the authentication ticket stored in the cookie, ... "Andy Sutorius" wrote: ... > control access into a subdirectory from the web.config in the root folder. ... doesn't the redirectfromloginpage call create the cookie for you? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [opensuse] 10.3 openSUSE updater
    ... On my laptop when instructing the updater to install the update it goes ... and does this without asking for the root password but on the desktop I ... This will happen if you configured "sudo" for your desktop user to just ...
    (SuSE)
  • Re: [opensuse] 10.3 openSUSE updater
    ... On my laptop when instructing the updater to install the update it goes ... and does this without asking for the root password but on the desktop I ... This will happen if you configured "sudo" for your desktop user to just ...
    (SuSE)