|
Next
Previous
Contents
7. X Applications from Another User-idSuppose you want to run a graphical configuration tool that requires root privileges. However, your X session is running under your usual account. It may seem strange at first, but the X server will not allow the tool to access your display. How is this possible when root can normally do anything? And how do you work around this problem?
Let's generalise to the situation where you want to an X appliation
under a user-id
7.1 Different Users on the Same HostOf course, anything that works for remote X also works for X from
a different user-id as well (particularly
We'll assume that you use
Setting
This doesn't work yet, because we still have to transfer the cookie.
We can retrieve the cookie using We shall want to pass the cookie through a pipe. Unfortunately, it
isn't easy to pass something through a pipe to the So we write a script around this, parameterizing by
I think this is portable and works well enough in most circumstances.
The only shortcoming I can think of right now is that, due to using
Call the script
Can't be much easier, unless you get rid of the password. Yes, there
are ways for that too (
The tiny
7.2 Client User Is RootObviously, anything that works for non-root client users is going to
work for root as well. However, with root you can make it even easier,
because root can read anyone's
Putting it into a script would give something like:
Call the script
Although, if you've set up
Next Previous Contents Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |