Path: utzoo!attcan!uunet!samsung!aplcen!haven!umbc3!umbc5.umbc.edu!bernie From: bernie@umbc5.umbc.edu (Bernard J. Duffy) Newsgroups: comp.sys.sgi Subject: Re: PI Problems Summary: is there a way to make SGI xterm's always run as login shell Keywords: cshrc /etc/motd /etc/cshrc xterm-logins Message-ID: <2890@umbc3.UMBC.EDU> Date: 2 Mar 90 16:39:24 GMT References: <9002220905.aa28986@VAT.BRL.MIL> <51649@sgi.sgi.com> <2836@umbc3.UMBC.EDU> <51830@sgi.sgi.com> <17463@boulder.Colorado.EDU> Sender: newspost@umbc3.UMBC.EDU Reply-To: bernie@umbc5.umbc.edu.UUCP (Bernard J. Duffy) Organization: University of Maryland, Baltimore County Lines: 45 In article <17463@boulder.Colorado.EDU> hartzell@boulder.Colorado.EDU (George Hartzell) writes: >In article <51830@sgi.sgi.com>, brendan@illyria (Brendan Eich) writes: >>It seems xterm doesn't start a login shell (one with an initial "-" in >>its argv[0] basename). Only a login C-shell reads /etc/cshrc and .login, >>similarly for sh and /etc/profile & .profile. I don't know much about X; >>perhaps there's an xterm option for logging in (creating a login shell, >>updating /etc/utmp). ^^^^^^^^^^^^^^^^^^ - If this is the part where the user shows up in the output from the "who" command, then this is done as the default setup. In other words, the remote - into - xterm sessions show up as interactive terminal sessions. > >From the xterm man page on my MIPS: > -ls This option indicates that the shell that is started > in the xterm window be a login shell (i.e. the first > character of argv[0] will be a dash, indicating to > the shell that it should read the user's .login or > .profile). > >g. >George Hartzell (303) 492-4535 > MCD Biology, University of Colorado-Boulder, Boulder, CO 80309 >hartzell@Boulder.Colorado.EDU ..!{ncar,nbires}!boulder!hartzell George / Brendan : Do you know of way to make all xterm-login sessions run as a login shell? My goal is to provide a consistent login sequence from all the "login", "rlogin", "telnet", and "xterm" sessions. I've been using some of the environment variables (like REMOTEHOST and DISPLAY), but they don't cover the exceptions well enough to get around the cases where /etc/cshrc doesn't get run. As a system administrate for new unix users, it is of great help to have a "system-wide" "cshrc" (/etc/cshrc) for all there logins. This way I can setup common system-wide aliases, umask-s, and terminal setups like the correct " stty erase " . The latter one is the biggest problem with Backspace and Delete characters in mix environments (unix: ATT/SGI - ^H, BSD/Ultrix - ^?, non-unix: VMS - ^? ). There might be a clean way around all of this if I could "bind" the back- space key on the SGI (PC-AT) keyboard to send the char 127 (Delete). Thanks for your responses, Bernie Bernie Duffy Systems Programmer II | Bitnet : BERNIE@UMBC2 Academic Computing - L005e | Internet : BERNIE@UMBC2.UMBC.EDU Univ. of Maryland Baltimore County | UUCP : ...!uunet!umbc3!bernie Baltimore, MD 21228 (U.S.A.) | W: (301) 455-3231 H: (301) 744-2954