Originally posted by: shargus
For denying login but allowing scripts/commands between servers - On our servers, we modified /etc/profile to filter this out.
Interactive logins run /etc/profile, while remote execution through ssh does not.
if /usr/bin/tty == /usr/sbin/lscons --> they're logging in at the console. You may or may not want to allow that.
/usr/bin/logname - tells what account they logged in as (may not be the same as /usr/bin/who if they did a "su").
We use a file to list what accounts are "service" or "application" accounts that are not allowed direct login, while "user" accounts can.
We also make an exception for clusters - you can freely connect from one member of a cluster to another.
Of course, this doesn't prevent someone from remotely executing an interactive shell; i.e. "ssh SERVER /usr/bin/sh"
#AIX-Forum