Bug 7774

Summary: sshd doesn't refuse to login people with no home
Product: Ports & Packages Reporter: zerium <zerium>
Component: Individual Port(s)Assignee: Kris Kennaway <kris>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description zerium 1998-08-29 11:50:02 UTC
login.conf has a option ``requirehome''. If this is set the users won't be 
able to login if /home is unmounted or the home is just removed. ssh doesn't 
care about this, but it should.

Fix: 

N/A
How-To-Repeat: 
# rm -rf ~user
$ login user
Home directory not available.

$ ssh user@localhost
Could not chdir to home directory /home/user: No such file or directory
user$
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-08-30 19:07:34 UTC
Responsible Changed
From-To: freebsd-ports->torstenb

Over to port maintainer. 
Comment 2 Will Andrews freebsd_committer freebsd_triage 2000-04-24 00:33:15 UTC
State Changed
From-To: open->feedback

I'm not sure, but I think your problem stems from an old ssh bug where 
it didn't care what the UseLogin configuration parameter was set to. 
Can anyone with the knowledge of ssh's history answer this? 


Comment 3 Will Andrews freebsd_committer freebsd_triage 2000-04-24 00:33:15 UTC
Responsible Changed
From-To: torstenb->kris

Kris is now the SSH port maintainer. 
Comment 4 Kris Kennaway freebsd_committer freebsd_triage 2000-09-02 02:51:02 UTC
State Changed
From-To: feedback->closed

I don't have intentions of writing patches to add this feature 
to the SSH port. OpenSSH seems to respect "requirehome", both 
the port and the version now in the base system. I suggest 
you use that if you haven't already made the transition by now.