Categories: Misc / DotNet / Java / Coder / Linux / PHP Ask - La ask - La Answer

ftpchroot is fixed in 10.2.4

Unless I am smokin' butt crack, I do believe that the FTPd in OS X 10.2.4 (client) now obeys the etc/ftpchroot file.

I am a happy man.

(granted, I did a couple funky things to my FTP test box before I realized that the ftpchroot file might actually work, so I need to go to a "clean" 10.2.4 box and retest)

[ 02-14-2003: Message edited by: dstranathan ]</p>
[395 byte] By [dstranathan] at [2007-11-15 9:12:15]
# 1 Re: ftpchroot is fixed in 10.2.4
holy crap! great news!

:)

Thanks for the update. *runs off to test*
Brad at 2007-11-17 13:12:53 >
# 2 Re: ftpchroot is fixed in 10.2.4
About time.

low-fi
low-fi at 2007-11-17 13:13:54 >
# 3 Re: ftpchroot is fixed in 10.2.4
[quote]Originally posted by Brad:
<strong>
Thanks for the update. *runs off to test*</strong><hr></blockquote>

Waiting for: *runs back to post that test was successful*
GardenOfEarthlyDelights at 2007-11-17 13:14:53 >
# 4 Re: ftpchroot is fixed in 10.2.4
Heh, sorry about that. Yes, things seem to be working properly now.
Brad at 2007-11-17 13:15:47 >
# 5 Re: ftpchroot is fixed in 10.2.4
what is that file ? what does it ? why are you all so excited about it ?
Defiant at 2007-11-17 13:16:57 >
# 6 Re: ftpchroot is fixed in 10.2.4
If you run the FTP server, it allows you restrict users' access to their home directories *only* as opposed to being able to see all the drive from "/".
Brad at 2007-11-17 13:17:56 >
# 7 Re: ftpchroot is fixed in 10.2.4
ah. thanks. :)
Defiant at 2007-11-17 13:18:58 >
# 8 Re: ftpchroot is fixed in 10.2.4
Well, I tried it again on a "virgin" 10.2.4 Mac and ftpchroot doesn't work! Grrr!

Here is an EASY fix:

Read the info:

<a href="http://discussions.info.apple.com/WebX?11@104.ufrCaxDShmM.2@.3bbeb9c0/1" target="_blank">http://discussions.info.apple.com/WebX?11@104.ufrCaxDShmM.2@.3bbeb9c0/1</a>

Download his ftpd file from here:

<a href="http://www.chezludo.com/ftpd.tar" target="_blank">http://www.chezludo.com/ftpd.tar</a>

Replace your current /usr/libexec/ftpd with his. Watch the permissions, it needs to be "-r-xr-xr-x" (owner = root, group = wheel)

Create your etc/ftpchroot file (unless you have one)

Start ftp services

Test!

Works great!
dstranathan at 2007-11-17 13:19:50 >
[an error occurred while processing this directive]
[an error occurred while processing this directive]