On Mon, Jan 31, 2005 at 12:10:00PM +1300, yuri wrote:
> Sometimes, when Julia is logged in as herself and I want to check my
> email, instead of logging her out, I start an xterm, type "su yuri",
> my password, then "kontact &" and it starts up my mail client as an X
> app.
here is why this might work:
when you do su (as opposed to su -) your homedirectory will not be
changed, it will remain ~julia/
now, your app will run under the assumption that julias home is your home.
(which is actually a correct assumption from a certain perspective ;-)
hence, your app will attempt to access julias .Xauthority file, and if
that is readable to you (which it actually should not be!) then this
will work.
what are the permissions of julias .Xauthority?
and of her homedirectory?
(there may also be a $XAUTH... variable involved)
how does your environment differ after you do su?
(one would think that your mailclient gets confused if it has the wrong
homedir, so i am confused that this even works for you)
alternatively maybe your version of su is actually a variant that
includes the features of sux.
greetings, martin.
--
offering experience: sTeam, caudium, pike, roxen and unix sysadmin
doing: programming, training and administration. anywhere in the world
--
pike programmer travelling and working in europe open-steam.org
unix system- bahai.or.at iaeste.(tuwien.ac|or).at
administrator (stuts|black.linux-m68k).org is.schon.org
Martin B�hr http://www.iaeste.or.at/~mbaehr/