Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.unix.questions Subject: Re: "login -h tip.address"?? Message-ID: <1991Jun1.201508.26245@thunder.mcrcim.mcgill.edu> Date: 1 Jun 91 20:15:08 GMT References: <1991May31.042914.11630@leland.Stanford.EDU> Organization: McGill Research Centre for Intelligent Machines Lines: 33 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