Re: [kde] Konsole unable to start xapps as root in Archlinux



On Sunday 21 October 2007 02:19:22 Ryo Furue wrote:
Hi Nigel and Xauth fans,

| Well I remember ages ago having this same problem on a distro,
| and having resolved it. Looking back through all my notes, and
| Doh, I see it was on Debian. The fix I got was to add the
| following to /root/.bashrc export
| XAUTHORITY=/home/<username>/.Xauthority

Thank you for the tips! Extending your idea, I found another
solution:

$ export XAUTHORITY=$HOME/.Xauthority
$ su

That's it. I put the first line into my (ordinary user's)
~/.bashrc or ~/.bash_profile . When I say "su -" my
environmental variables are discarded, but when I say "su" my
environmental variables are inherited by root.

This method is better for me than to put
"export XAUTHORITY=/home/<my_username>/.Xauthority" into root's
.bashrc, because my system administrators sometimes log in
to my machine and become root. When they do so, they might
send their windows to my screen without their knowing!

A slight downside is that my own, nonstandard environment
variables are inherited by root, too. (HOME seems to be
overriden by the su command, so that you don't have to worry too
much.)

Unless I am missing something, I think you are creating a security
hole doing it this way.
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: [kde] Konsole unable to start xapps as root in Archlinux
    ... | Well I remember ages ago having this same problem on a distro, ... Looking back through all my notes, and Doh, I see it was on ... but when I say "su" my environmental variables are ... to my machine and become root. ...
    (KDE)
  • Re: What the Hell has happened to this group???
    ... then hire a Linux geek to put a proper firewall in your gateway box. ... as Root whilst connected to the internet. ... be changed locally, so they boot as root as a rule, as it were. ... happen to be on the system, though not written to by the distro as a rule ...
    (sci.electronics.design)
  • Re: Advice for setting up partitions/Semi standard usage
    ... Also MAYBE try out another distro on here. ... crush the account data and possibly apps and things like that i'd like ... possibly in the root. ... or maybe slice about 500MB off for a tmp folder ...
    (linux.redhat.install)
  • Re: Advice for setting up partitions/Semi standard usage
    ... Also MAYBE try out another distro on here. ... crush the account data and possibly apps and things like that i'd like ... possibly in the root. ... or maybe slice about 500MB off for a tmp folder ...
    (comp.os.linux.setup)
  • Re: partitioning for dual-linux..
    ... root - 0.15GB ... place a /home in each root partition (one for each distro) and then ... the root partition, but place all the "neutral" stuff like documents, ... Debian HFS. ...
    (Debian-User)