D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] ROOT:Running apps as another user



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Keith Abraham wrote:
> 	My intention was not to do anything overly complex
> 	(says he).
> 	ie:
> 	Wife phones me at lunch and asks me to configure
> 	the Appearance section of Konqueror in her account
> 	so that it's identical to mine.
>
> 	As altering the Konqueror config files by hand, from root,
> 	is a complex business, I figure it's easier to to the config
> 	from her account.


Okay Konqueror is a particularly messy example, as it has some limited
interaction with the KDE desktop (which we will ignore for now).

The simple way is something like;

Use xhost to give wife's account access to Keith's X client (man xhost)
su - 		(become root requires password)
su - wife 	(become wife, no password required for root)
export DISPLAY=:0	(point X back to Keith's display - see man X)
konqueror		(run Konqueror as wife).

With different values of DISPLAY this can work across a network, some
tools exist to do the display variable setting automatically, the most
useful of which is "ssh -X" (just drop your key in wifey's .ssh
directory while you are there if you trust to keep your account secure.

If wifey trusts you via ssh, the answer is "ssh -X wife@xxxxxxxxx ;
konqueror", not efficient but simple.

>	(And save the wife's deluded
> 	opinion of me as a computer expert!!)

They only end up asking you to fix Windows, and that is a never ending
task, Windows are too brittle.
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+plFAGFXfHI9FVgYRAmZQAJkBApumGOv+vBsDF8CDJEWvxFyN6ACghO8a
Xu+tD9wiYRa6XORYFErwZIE=
=lZFc
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly