Bug 7774 - sshd doesn't refuse to login people with no home
Summary: sshd doesn't refuse to login people with no home
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kris Kennaway
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-08-29 11:50 UTC by zerium
Modified: 2000-09-02 02:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.