Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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