1847090 Members
5454 Online
110262 Solutions
New Discussion

Changing login program

 
Rumen Ginev
Frequent Advisor

Changing login program

Hi!

How can I tell to telnetd and rlogind (on both HPUX 11.00 and 10.20) to use another login program (not /usr/bin/login).

Tanx!
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: Changing login program

Hi

Providing you are sure of your alternative login program then:-

1. mv /usr/bin/login /usr/bin/loginold
2. Place your login program in /usr/bin/ and call it login.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Volker Borowski
Honored Contributor

Re: Changing login program

Hmm,
I think you can not.

May be you can substitute login with a shellscript, that checks, if its parent process ID belongs to a telned or rlogind
and starts something else then.

I am not so sure, if this works, because I think telnetd and rlogind do NOT call login, but instead they call getty, which switches to login in some cases.

Do not know if this helps
Volker
Herve BRANGIER
Respected Contributor

Re: Changing login program

Hi,

The only way I know to do that (I made it on
linux box) is to get telnetd sources (but
thinks it's impossible for HPUX) and modify
telnetd progam ...
I think there are no option to do that. But,
like Paula said, you can change login program.
But you modify login for remote and local
access (login on console, telnet and rlogin).

If you just want to modify access login for
telnet client you can do a script wich call
another program in this case...

I think it's better during your test to have
an open session on your system... sometimes
it's really usefull.

HTH

Herve


Vincent Stedema
Esteemed Contributor

Re: Changing login program

Hi,

If I were you I'd study the PAM implementation for HP-UX. When using PAM, you should be able to modify the authentication methods per program.

For more information:

man 4 pam.conf

Vincent