On Mon, 31 Jan 2005 00:23:02 +0100, Martin B�hr
<[EMAIL PROTECTED]> wrote:
> 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/

No. My current working directory will be ~julia/. My home directory
will be ~yuri/.
After su, if I type "cd" with no args I end up in ~yuri/.

> 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.

This is more likely.

Yuri
-- 
** WARNING to mailing list repliers **
Gmail over-rides "Reply-To:" field. Check your "To:" address before
sending reply to this post.

Reply via email to