How can I disable a ssh remote user login for a specific user?

From: Michael.van.Leyden (m.leyden_at_chello.nl)
Date: 05/03/05


Date: Tue, 03 May 2005 14:08:02 GMT

Hi,

I have just installed oracle on my system and want to disable ssh login
for the oracle account, for security reasons. I have been googeling around
but have not found any good suggestions.

If need to use the oracle account remotely I want to connect via ssh under
a normal user account a su - to the oracle user.

The most suggest to edit the /etc/passwd file and changing the default
shell to /sbin/nologin. But this option also prevents login in locally.

If anyone knows how to solve the problem, please let me know.



Relevant Pages