1827082 Members
1575 Online
109713 Solutions
New Discussion

login -h

 
SOLVED
Go to solution
Timothy P. Jackson
Valued Contributor

login -h

Ok, I know if have seen this before but I can't remember where. I have a developement machine and when I do a "ps -ef | grep login" I find a bunch of "login -h" processes. I am not sure what the developers are doing to create these but the don't seem to time out. Has any one seen these or can point me in a direction to find out what spawns these processes.

Thanks,
Tim
4 REPLIES 4
Judy Traynor
Valued Contributor

Re: login -h

Tim

Try ps -eu username

that will tell you who has what process..

there is a process tree command but I don't remember - If I do, I'll get back.

Sail With the Wind
Elmar P. Kolkman
Honored Contributor
Solution

Re: login -h

login -h == hushlogin, afaik.
You can get it by creating a .hushlogin file in your homedirectory. This will result in hushing motd and issue files, giving a clean login.

At least, that was so on ultrix. I cannot find the -h in the man page on hpux now, and can not replay it. But you might look for this on this specific system. Perhaps login is replaced?
Every problem has at least one solution. Only some solutions are harder to find.
Timothy P. Jackson
Valued Contributor

Re: login -h

Thanks Elmar,

This confims where I saw it before, on Ultrix. I will approach developers and find out who is trying to create an automatic login script that is not working. I was actually able to duplicate it so now I now what to look for.

Tim
Dietmar Konermann
Honored Contributor

Re: login -h

In HP-UX the -h option of login(1) takes a (remote) hostname that is supposed to be logged to utmp/wtmp. If you see the -h option without hostname, then this is likely to be caused by problem JAGad55403, fixed beginning with PHCO_23900 (11.11), PHCO_24083 (11.00), PHCO_24267 (10.20).

However, this doesn't explain that they don't timeout.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)