(login) behaviour.

James Brister brister at td2cad.intel.com
Thu May 18 14:16:26 AEST 1989


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 at relay.cs.net
CSNET:	brister at td2cad.intel.com                          VOICE: (408) 765-9713



More information about the Comp.unix.wizards mailing list