FTP logins have stopped working

bchen421

Registered
I had just ftp'ed into my ibook G4 abour 3 hours ago. I then let the 10.3.5 update install and now I cannot login to ftp.


Here's my output:

Benjamin-Chens-Computer:~ root# service ftp stop
Benjamin-Chens-Computer:~ root# service ftp start
Benjamin-Chens-Computer:~ root# more /etc/ftpusers
# list of users disallowed any ftp access.
# read by ftpd(8).
Administrator
administrator
#root
uucp
daemon
unknown
www
Benjamin-Chens-Computer:~ root# ftp localhost
Trying ::1...
Connected to localhost.
220 localhost FTP server (tnftpd 20040810) ready.
Name (localhost:BChen): root
331 Password required for root.
Password:
530 Login incorrect.
ftp: Login failed.
ftp> quit
221 Thank you for using the FTP service on localhost.
Benjamin-Chens-Computer:~ root# ftp localhost
Trying ::1...
Connected to localhost.
220 localhost FTP server (tnftpd 20040810) ready.
Name (localhost:BChen): BChen
331 Password required for BChen.
Password:
530 Login incorrect.
ftp: Login failed.
ftp> quit
221 Thank you for using the FTP service on localhost.
Benjamin-Chens-Computer:~ root# ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20a:95ff:fecd:5ab6 prefixlen 64 scopeid 0x4
inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:0a:95:cd:5a:b6
media: autoselect (100baseTX <full-duplex>) status: active
supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>
fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:0a:95:ff:fe:cd:5a:b6
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
Benjamin-Chens-Computer:~ root# ftp 192.168.1.101
Connected to 192.168.1.101.
220 Benjamin-Chens-Computer.local FTP server (tnftpd 20040810) ready.
Name (192.168.1.101:BChen): root
331 Password required for root.
Password:
530 Login incorrect.
ftp: Login failed.
ftp> user
(username) BChen
331 Password required for BChen.
Password:
530 Login incorrect.
Login failed.
ftp> quit
221 Thank you for using the FTP service on Benjamin-Chens-Computer.local.
Benjamin-Chens-Computer:~ root#


I enabled root ftp in /etc/ftpusers. Worked 3 hours ago, stopped working. My administrator account is not working either and it's not even in /etc/ftpusers. I can telnet in, ssh in. Anything else anyone can think of? This is driving me nuts....
 
The security update went from lukemftpd to tnftpd. tnftpd is currently not in a working state. If you download the security patch, make sure to retain a copy of your /usr/libexec/ftpd to overwrite it.
 
Grabbed and summarized from the apple forums
http://discussions.info.apple.com/webx?14@75.qRolaOacvmB.3@.689a720d

open up a terminal and type the following:
cd /usr/libexec
sudo mv ftpd ftpd.bad (save it just in case)

if you are using 10.2.8 download the file
http://macadam.dyndns.org/downloadable/1028/
if you are using 10.3.5 download the file
http://macadam.dyndns.org/downloadable/1035/

unstuff the file
go back to the terminal and type
open ./

now drag the file ftpd into the directory that just opened up. You will have to authenticate yourself in order to do this.

go back to the the terminal now and type:
sudo chown root ftpd
sudo chmod 555 ftpd

that's it! ftp should be working now. Granted you may have to turn off the service and turn it back on again.


also, when apple comes out with a fix for this, it would probably be best if you did the following to prevent any more confusion:
open a terminal:
type cd /usr/libexec
sudo rm ftpd
sudo mv ftpd.old ftpd
 
Back
Top