Operating System - HP-UX
1823143 Members
3632 Online
109647 Solutions
New Discussion юеВ

make user su - user1 after login, but not log in as user1

 
Ratzie
Super Advisor

make user su - user1 after login, but not log in as user1

We are trying to incorporate some security features on our server. Unfortunately we have to have telnet turned on.

One application runs under a certain user, I have created everyone there own userid's and want them to log in with there id's and then su - to that specific user. This way I know who is actually logged in.

I know this can be done with ssh, but how would you do it with telnet.
I would like to give back a banner as well that they can not log in with this id, please log in with your own user id and su - to the user id.
2 REPLIES 2
Jim Butler
Valued Contributor

Re: make user su - user1 after login, but not log in as user1

You can modify the global startup scripts
(/etc/csh.login) for example
to look at uid and break out, exit, echo a message, whatever -

Let me know if you need sample code.
Man The Bilge Pumps!
Ratzie
Super Advisor

Re: make user su - user1 after login, but not log in as user1

Yes, I would really appreciate any script.

So it is not as easy as ssh...