* DISPLAY and other env variables
@ 2000-04-28 4:00 Mike Mohr
2000-04-28 4:00 ` Adam Price
0 siblings, 1 reply; 3+ messages in thread
From: Mike Mohr @ 2000-04-28 4:00 UTC (permalink / raw)
I have an irritating condition under 4.0D that occurs whenever I 'su -
userid' within a session. I keep losing terminal settings and important
variables like DISPLAY, etc. Does anybody know how to prevent this from
happening?
================================================================
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DISPLAY and other env variables
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
0 siblings, 1 reply; 3+ messages in thread
From: Adam Price @ 2000-04-28 4:00 UTC (permalink / raw)
Mike Mohr wrote in message <3908EBF9.3E8402AE@aut.ac.nz>...
>I have an irritating condition under 4.0D that occurs whenever I 'su -
>userid' within a session. I keep losing terminal settings and important
>variables like DISPLAY, etc. Does anybody know how to prevent this from
>happening?
>
Use su instead of su -
Hope this helps
Adam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DISPLAY and other env variables
2000-04-28 4:00 ` Adam Price
@ 2000-05-01 4:00 ` Mike Mohr
0 siblings, 0 replies; 3+ messages in thread
From: Mike Mohr @ 2000-05-01 4:00 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-01 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox