Deny remote login

Just like we do it for root user. I want to deny a user remote login using telnet. But he should be able to su into the account. I know 2 ways to do it.

1)Firstly set that particular user's profile to /bin/false

2)In the user profile the first command to get executed should be

stty 0

Is ther any other way to do so?

Thanks

Suresh

[376 byte] By [ramachandran_suresh] at [2007-11-26 6:50:01]
# 1

i am not sure how you disable telnet for a user and then make him su into the account.

If you are using solaris 9 then use TCP Wrappers.

TCP Wrappers allows the administrator to control what hosts have access to various network services based on the IP address of the remote end of the connection.

Amit

kamitkr at 2007-7-6 15:15:49 > top of Java-index,General,Talk to the Sysop...
# 2
If your using LDAP for authentication just set an ACI that blocks that user from logging on.alan
alan_pae at 2007-7-6 15:15:49 > top of Java-index,General,Talk to the Sysop...