Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Mike Mohr <mike.mohr@aut.ac.nz>
Subject: Re: DISPLAY and other env variables
Date: 2000/05/01	[thread overview]
Message-ID: <390CD217.484863ED@aut.ac.nz> (raw)
In-Reply-To: 956900927.21614.2.nnrp-08.c2deb51d@news.demon.co.uk

Tim Mooney wrote:

:-) It's working exactly the way it should.  The `-' argument to su makes
sure that you do a complete login as the other user, thereby taking on
their ENV and destroying yours.

Even if you you don't use the `-' and DISPLAY is left untouched once you're
the new userid, you're likely to have problems opening new X windows if
you're
using magic-cookie auth with X.  The new userid won't have permission to
read your .Xauthority file, assuming the userid you're su'ing to isn't root.

--
That still doesn't explain the irritating change of terminal characteristics
that occur when I su while on a character mode terminal.  I start out with
backspace defined as ^H and, upon su, I end up with backspace defined as
<del>.  The 'su - <user>' construct should assume session characteristics
unless specifically overridden by the su'd user's .profile.  It appears that
Tru64 assumes some invalid notion of terminal which is contrary to every
other U*X I deal with.

Also don't try to explain it away as something related to the terminal
definitions in /usr/share/terminfo and /etc/termcap.  Both state bs=^H.  If
they were defaulting according to the method you might suggest, I'd have
users complaining that their erase=<del> setting is no longer working.

================================================================
Mike Mohr, Systems Administrator  === Email: Mike.Mohr@aut.ac.nz
Information Technology Group      === Phone: 64 9 307-9999 x8133
Auckland University of Technology === Fax:   64 9 307-9901
PO Box 92006, Auckland, New Zealand =
http://home.aut.ac.nz/staff/mmohr/
================================================================
If we have unlimited ability to think, why do we use computers?





      reply	other threads:[~2000-05-01  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-28  4:00 DISPLAY and other env variables Mike Mohr
2000-04-28  4:00 ` Adam Price
2000-05-01  4:00   ` Mike Mohr [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox