Re: running programs from user acctount as root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux