FTP and TFTP Servers

Anyone got an FTP server working? PureFTPd reports the port (21) is already in use.

The tftpserver front end to tftp doesn't start the service either.

I need something to use for upgrading Cisco routers. Any suggestions?

MacbookPro, Mac OS X (10.6)

Posted on Aug 30, 2009 8:42 AM

Reply
11 replies

Aug 31, 2009 4:38 PM in response to baltwo

Hopefully you are correct, although it is really a general OS X 10.6 Snow Leopard question, since both FTP and tftpd are components of OS X in general, and not specific to the server versions. I believe that is why we also posted our questions here...being as this is "OS X 10.6 Snow Leopard" "general OS" forum, and I am running the "non-server" version of Snow Leopard. Of course, I could have been mistaken when I was reading the forum headings...

Sep 1, 2009 1:23 AM in response to baltwo

Some log information from the two programs which may help.

tftpserver

from the console log

01/09/2009 09:06:33 TftpServer[196] Setting TFTPServer path to /tftproot ... 1\
01/09/2009 09:06:45 TftpServer[196] load TFTPServer ... \
01/09/2009 09:06:59 TftpServer[196] load TFTPServer ... \

From the diagnostics log


\f0\fs24 \cf0 01/09/2009 09:04:27 SecurityAgent[173] system.privilege.admin|2009-09-01 09:04:27 +0100\
com.apple.message.domain: com.apple.SecurityAgent.DialogFrequency\
com.apple.message.result: noop\
com.apple.message.signature: TftpServer.app\


with Pureftdp

from the console log

01/09/2009 09:09:38 [0x0-0x1e01e].org.pureftpd.macosx 2009-09-01 09:09:38.928 PureFTPd Manager[246:e07] * WARNING: Method selectRow:byExtendingSelection: in class NSTableView is deprecated. It will be removed in a future release and should no longer be used.\
01/09/2009 09:09:42 [0x0-0x1e01e].org.pureftpd.macosx objc[246]: Class MWGradientView is implemented in both /Applications/PureFTPd Manager.app/Contents/MacOS/PureFTPd Manager and /Applications/PureFTPd Manager.app/Contents/PreferencePanes/AuthentificationPane.prefPane/Contents/Mac OS/AuthentificationPane. One of the two will be used. Which one is undefined.\
01/09/2009 09:09:42 [0x0-0x1e01e].org.pureftpd.macosx objc[246]: Class WBTimeControl is implemented in both /Applications/PureFTPd Manager.app/Contents/MacOS/PureFTPd Manager and /Applications/PureFTPd Manager.app/Contents/PreferencePanes/FTPLogPane.prefPane/Contents/MacOS/FTPLogP ane. One of the two will be used. Which one is undefined.\
01/09/2009 09:09:48 [0x0-0x1e01e].org.pureftpd.macosx bind(): Address already in use\
01/09/2009 09:09:48 [0x0-0x1e01e].org.pureftpd.macosx org.pureftpd.macosx: Already loaded}


From the diagnostics log

01/09/2009 09:09:27 SecurityAgent[173] system.privilege.admin|2009-09-01 09:09:27 +0100\
com.apple.message.domain: com.apple.SecurityAgent.DialogFrequency\
com.apple.message.result: noop\
com.apple.message.signature: PureFTPd Manager.app\
}

Sep 2, 2009 1:03 PM in response to Nathan Cowger

There is definitely a tftp server running in Snow Leopard

Check /System/Library/LaunchDaemons/tftp.plist

There the directory is specified to be /private/tftpboot. I changed mine to /Users/Shared/Tftpboot.

Make sure this directory got "777".

To launch tftpd use "+sudo service tftp start+".

Now you can use your machine as tftp server.

To me it looks, that TFTPServer 3.2.1 is not actually a tftp server itself, it does just the entry to the tftp.plist and invokes service tftp start. Nice frontend.

Sep 3, 2009 6:13 AM in response to Peter Bruderer

Yes OS X has the tftp server built in the current recommended way of starting it is via launchctl as service tftp start is deprecated.

sudo launchctl

load -F /System/Library/LaunchDaemons/tftp.plist

and stop it with

unload /System/Library/LaunchDaemons/tftp.plist

See http://aplawrence.com/MacOSX/tftp.html for more details


You are right tftpserver was just a nice front end allowing easy start/stop/reconfigure of directories, creation of files etc without using the command line. Can live without it, but just got to love it.

Message was edited by: BigRedFrog

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

FTP and TFTP Servers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.