HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR
Operating System - HP-UX
1833414
Members
3093
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 07:07 PM
07-28-2003 07:07 PM
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
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2003 07:50 PM
07-28-2003 07:50 PM
Re: SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR
Seems that HP's ssh does not have that facility.
For loggin the closest option I could check was running ssh with -e option and defining the syslog.conf such that the errros goto seperate file. It would at least be easy to grep for failed ssh logins from this file rather than using syslog.log file.
Check openssh. It may have these options, not very sure abt it, never used it.
For loggin the closest option I could check was running ssh with -e option and defining the syslog.conf such that the errros goto seperate file. It would at least be easy to grep for failed ssh logins from this file rather than using syslog.log file.
Check openssh. It may have these options, not very sure abt it, never used it.
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:52 PM
07-29-2003 07:52 PM
Re: SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR
Hi,
Since OpenSSH has tcpwrappers built-in, one way is to get tcpwrapper to run a script. I personally think however that the cleaner way of having logins aborted on missing home directories would be to rely on system login profiles without being dependent on feature availability in each application.
For instance, in /etc/profile, can have something like this within the signal traps:
if [ ! -e $HOME ]
then
exit
fi
Other system login scripts have to be modified accordingly to catch all.
Hope this helps. Regards.
Steven Sim Kok Leong
Since OpenSSH has tcpwrappers built-in, one way is to get tcpwrapper to run a script. I personally think however that the cleaner way of having logins aborted on missing home directories would be to rely on system login profiles without being dependent on feature availability in each application.
For instance, in /etc/profile, can have something like this within the signal traps:
if [ ! -e $HOME ]
then
exit
fi
Other system login scripts have to be modified accordingly to catch all.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2003 02:55 PM
08-07-2003 02:55 PM
Re: SSH equivalent to ABORT_LOGIN_ON_MISSING_HOMEDIR
Here's another way to do it:
Write a little script that checks for which users don't have valid home directories (or you can run pwck). Take that list of users and add it to the sshd_config file:
DenyUsers user1 user2 user3
- Chris
Write a little script that checks for which users don't have valid home directories (or you can run pwck). Take that list of users and add it to the sshd_config file:
DenyUsers user1 user2 user3
- Chris
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP