shedevil@leland.Stanford.EDU (Pontifica Maxima) (05/31/91)
Sorry if this seems to be a 'rtfm' question, but I DID rtfm, and it has nothing listed as a "-h" option. When someone's job shows as "login -h tip.address" where tip.address is the address of a local dial-in, what exactly does that mean? If you just type "login", you end up being prompted and logging back into the same system. If you type "login -h" it goes directly to the password prompt, but does not accept your regular password. If you type "login -h tip.address" it says "too many arguments". Can anybody shed some light on this? Thanks -- Are you from Greenfield, Putney, Priest River or NYC School w/out Walls c.'71 Anne (She Devil) Mitchell - Stanford Law - shedevil@leland.stanford.edu No disclaimer necessary as this is *my* account, and besides - nobody would ever accuse anyone else of having these opinions anyway!
rearl@watnxt3.ucr.edu (Robert Earl) (05/31/91)
Here's what my manpage for login(1) says: BUGS An undocumented option, -r is used by the remote login server, rlogind(8C) to force login to enter into an initial connection protocol. -h is used by telnetd(8C) and other servers to list the host from which the connection was received. -- ______________________________________________________________________ \ robert earl / "Love is a many splintered thing" rearl@watnxt3.ucr.edu \ --Sisters of Mercy rearl@gnu.ai.mit.edu /
mouse@thunder.mcrcim.mcgill.edu (der Mouse) (06/02/91)
In article <1991May31.042914.11630@leland.Stanford.EDU>, shedevil@leland.Stanford.EDU (Pontifica Maxima) writes: > Sorry if this seems to be a 'rtfm' question, but I DID rtfm, and it > has nothing listed as a "-h" option. > When someone's job shows as "login -h tip.address" where tip.address > is the address of a local dial-in, what exactly does that mean? The -h flag is an undocumented flag to login that is used to pass host info through to the utmp record. > If you just type "login", you end up being prompted and logging back > into the same system. > If you type "login -h" it goes directly to the password prompt, but > does not accept your regular password. > If you type "login -h tip.address" it says "too many arguments". The reason for these are that login is a built-in command in most (all?) shells. The built-in command takes at most one argument, a username; thus, "login -h tip.address" is too many arguments and "login -h" tries to log you in as the (probably nonexistent) user named -h. You need to run the login *program*. Try using /bin/login instead of just login. (Note, if you do this then when you log out you will likely find yourself back in your original shell; to avoid this use "exec /bin/login" or some such.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu