Operating System - HP-UX
1753927 Members
8853 Online
108810 Solutions
New Discussion

SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR

 
YLTan
Frequent Advisor

SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR


Does anyone know how/what the sshd_config equivalent to telnet (/etc/default/security) of
ABORT_LOGIN_ON_MISSING_HOMEDIR ?

Those setting in /etc/default/security have no effect on SSH.

I also found that SSH does not capture bad login in btmp file, it goes to syslog.log instead. Any way to set it to btmp? if it possible.
tyl
1 REPLY 1
Andrew Cowan
Honored Contributor

Re: SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR

Hi,

I don't think that you can send it directly to btmp because it is stored in a binary/data format. You can send SSH information to a separate file, and then write a script parse it and get much the same info. Simply edit the sshd_config file:

SyslogFacility AUTH
LogLevel INFO

then add an an entry to /etc/syslog.conf e.g:

auth.info /var/adm/syslog/sshlog

Touch the file if it does not exist then restart sshd and syslogd.

I hope this helps.
Andrew