How restrict network login on AIX for everything BUT SSH? (RLOGIN=FALSE & loginrestrictions question)



In IBM's AIX there is an security option to restrict network login (RLOGIN=FALSE security stanza in /etc/security/user). This work great on restricting an account from using telnet, rsh, rlogin and SSH.

Unfortunately I WANT to disable telnet, rsh, rlogin etc for an account, BUT keep SSH enabled. I can't figure out how. In Aix v4.3.3, 5.1 and 5.2 we did this by writing a custom LAM module to restrict access to an account to the console and bypass having to set RLOGIN=FALSE, it really only worked on telnet, but that was enough... However in Aix v5.3 full pam support was added, and our LAM module broke and we have been unable to figure out how to get it working again.

I have tried setting rlogin=false and set the account to use PAM (and compiled SSH with PAM support). Still can't get it to work, seems that SSH queries AIX loginrestrictions BEFORE it tries PAM, so the account is
"locked" before it even tries PAM..

Anyone know how to get SSH to ignore or override the AIX Loginrestrictions() (RLOGIN=FALSE) on AIX v5.3? Or another way to accomplish this?

Thanks

RV

BTW. Running AIX v5.3 and OpenSSH v4.2p1
.



Relevant Pages

  • Re: How restrict network login on AIX for everything BUT SSH? (RLOGIN=FALSE & loginrestrictions
    ... Unfortunately I WANT to disable telnet, rsh, rlogin etc for an account, BUT keep SSH enabled. ... However in Aix v5.3 full pam support was added, and our LAM module broke and we have been unable to figure out how to get it working again. ...
    (comp.security.ssh)
  • Weakness introduced by denying remote logins on AIX, possibly others
    ... AIX 4.3.3 and AIX 5.1, ... is possible to remotely enumerate the passwords of a known AIX account. ... believed to be in the response from the login program after authentication ... Give accounts that have been restricted from remote logins strong passwords. ...
    (Security-Basics)
  • Re: How restrict network login on AIX for everything BUT SSH? (RLOGIN=FALSE & loginrestrictions
    ... Unfortunately I WANT to disable telnet, rsh, rlogin etc for an account, ... BUT keep SSH enabled. ... However in Aix v5.3 full ... pam support was added, and our LAM module broke and we have been unable ...
    (comp.security.ssh)
  • Re: SMB Connections
    ... We use active directory authentication via the 'password server =' ... The user must have an active directory account and an AIX ...
    (AIX-L)
  • Re: sqwebmail web login
    ... would yield a message such as "Remote logins for this account are not ... It's an issue that I have submitted to BugTraq in the past and had rejected ... the valid password for a given account, this type of information is only ... Personally I can only confirm this result on AIX 4.3.3 - AIX 5.1. ...
    (Bugtraq)