Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!mipos3!td2cad!brister From: brister@td2cad.intel.com (James Brister) Newsgroups: comp.unix.wizards Subject: (login) behaviour. Message-ID: Date: 18 May 89 04:16:26 GMT Sender: news@td2cad.intel.com Distribution: comp Organization: Intel Corp., Santa Clara, CA, USA Lines: 32 Is this standard operating procedure for UN*X or just Ultrix 2.2? Basically, when running the command ``login'' in a subshell, the username of the original shell gets changed when the subshell exits. I know that login replaces the current process, but I thought that putting it in () would get around that. Is ``su'' the solution? T-I-A. % who am i andrea!brister ttyp0 May 17 21:04 (ARIES) % users bhargav brister % (login) login: testacct > who am i andrea!testacct ttyp0 May 17 21:04 > users bhargav testacct > exit logout % who am i andrea!testacct ttyp0 May 17 21:04 % users bhargav testacct % logout James -- ------------------------------------------------------------------------------- James Brister "Is the set of all respectable sets respectable?" UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!td2cad!brister ARPA: brister%td2cad.intel.com@relay.cs.net CSNET: brister@td2cad.intel.com VOICE: (408) 765-9713