Bug 17843

Summary: ftpd fails to set cwd with mode 700 NFS mounted home dirs
Product: Base System Reporter: Andrew Gallatin <gallatin>
Component: binAssignee: Yar Tikhiy <yar>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andrew Gallatin 2000-04-07 15:10:01 UTC
	ftpd will currently fail to set the CWD when logging in if a
user's home directory is mode 700 & it is mounted over NFS & the NFS
server is not mapping root to 0

How-To-Repeat: 
ftp into such a setup.  Eg:

% ftp 192.233.54.149
Connected to 192.233.54.149.
220 spe149.testdrive.compaq.com FTP server (Version 6.00LS) ready.
Name (192.233.54.149:gallatin): gallatin
331 Password required for gallatin.
Password:
230- No directory! Logging in with home=/
230 User gallatin logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2002-05-11 02:58:44 UTC
State Changed
From-To: open->feedback

We are moving to LukemFTPd in current. 

Can you possibly try this with a -current from  
after feb 28 2002 using lukemftpd and report back 
if it works or not?
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2002-08-21 20:46:10 UTC
Responsible Changed
From-To: freebsd-bugs->yar

Over to Yar who has been seen working with the ftpd code.
Comment 3 Yar Tikhiy freebsd_committer freebsd_triage 2003-01-29 08:55:37 UTC
Hi Andrew,

I'm installing a patch to FreeBSD-current that should fix the problem
you reported 3 years ago (it's a shame it took us that long to deal
with it) along with a number of other bugs in ftpd(8).
Could you test my solution in -current, or shall I provide a patch
against 4.7-stable for your convenience?

-- 
Yar
Comment 4 Yar Tikhiy freebsd_committer freebsd_triage 2003-01-29 10:09:52 UTC
State Changed
From-To: feedback->patched

Fixed in -current.
Comment 5 Andrew Gallatin 2003-01-29 15:09:48 UTC
Yar Tikhiy writes:
 > Hi Andrew,
 > 
 > I'm installing a patch to FreeBSD-current that should fix the problem
 > you reported 3 years ago (it's a shame it took us that long to deal
 > with it) along with a number of other bugs in ftpd(8).

I would have just comitted it myself, but touching code with such
a high security profile makes me nervous.

 > Could you test my solution in -current, or shall I provide a patch
 > against 4.7-stable for your convenience?


Unfortunately, the problem happened at Compaq's test-drive site.  I
was for a time helping the person admin'ing the FreeBSD systems there
because of some FreeBSD/alpha issues they'd raised,  and because his
boss & I knew each other.  He left a few years back, as did his boss,
and I no longer have any contact with them...

Thanks for finally closing this!

Drew
Comment 6 Yar Tikhiy freebsd_committer freebsd_triage 2003-02-11 14:51:18 UTC
State Changed
From-To: patched->closed

Fixed in STABLE as well.  Thanks!