From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,92baf09d7b82c9ce X-Google-Attributes: gidfee84,public From: Mike Mohr Subject: Re: DISPLAY and other env variables Date: 2000/05/01 Message-ID: <390CD217.484863ED@aut.ac.nz>#1/1 X-Deja-AN: 617677600 Cache-Post-Path: pakatoa.aut.ac.nz!unknown@nereus.aut.ac.nz Content-Transfer-Encoding: 7bit References: <3908EBF9.3E8402AE@aut.ac.nz> <956900927.21614.2.nnrp-08.c2deb51d@news.demon.co.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@auckland.ac.nz X-Trace: scream.auckland.ac.nz 957141525 17688 156.62.3.11 (1 May 2000 00:38:45 GMT) Organization: AIT Mime-Version: 1.0 NNTP-Posting-Date: 1 May 2000 00:38:45 GMT Newsgroups: comp.unix.osf.osf1 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 . The 'su - ' 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= 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?