Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » General Discussion   » enabling tftp Server

UBBFriend: Email this page to someone!    
Author Topic: enabling tftp Server
janderson
Member
Member # 87

posted October 11, 2001 01:55 PM      Profile for janderson   Email janderson   Send New Private Message      Edit/Delete Post  Reply With Quote 
I hope you don't mind I have a duplicate post on Macosx.org, but does anyone know how to enable the tftp server in OSX and specify a directory for which it uses?

Thanks,
Joe


Posts: 21 | From: Dallas | Registered: Sep 2001  |  IP: Logged
Dan
Member
Member # 106

posted October 11, 2001 03:42 PM      Profile for Dan     Send New Private Message      Edit/Delete Post  Reply With Quote 
I've never run a tftpd server before but I just did a quick `man -k tftp`. Do that, then look at the man page for tftpd. There it explains most everything.

vi /etc/inetd.conf and uncomment the tftpd line, adding `-s ` to the command. This changes the root directory to the second argument: `/private/tftpboot`... which is the directory that it uses.

After this, you probably have to do a kill -HUP on inetd to get it to read in the inetd.conf changes.

I'm curious, if you don't mind me asking, what you're going to use it for. I believe it was originally designed for diskless workstations that need to copy an image on startup or something.

--------------------

Dan


Posts: 27 | Registered: Sep 2001  |  IP: Logged
janderson
Member
Member # 87

posted October 11, 2001 04:47 PM      Profile for janderson   Email janderson   Send New Private Message      Edit/Delete Post  Reply With Quote 
Man I feel like an idiot... I was looking at the wrong man pages... I kept looking over the man pages for tftp commands rather than the server.

Thanks pointing the way.

-Joe


Posts: 21 | From: Dallas | Registered: Sep 2001  |  IP: Logged
janderson
Member
Member # 87

posted October 11, 2001 05:02 PM      Profile for janderson   Email janderson   Send New Private Message      Edit/Delete Post  Reply With Quote 
I forgot to tell you why I was using it... I'm a network engineer and some of my routers and switches grab their code upgrades from a tftp server. I don't have a dedicated tftp server on my LAN so I usually just fire one up on my laptop for temporary purposes. tftp does seem to be phasing out in some of the newer equipment I've been using. Probably due to it using UDP rather than TCP. UDP offers no guarantees that the data will get to it's destination so occasionally your code upgrade will fail and you'll have to start from scratch... I'm babbling now. Hope this answers your question.

-Joe


Posts: 21 | From: Dallas | Registered: Sep 2001  |  IP: Logged
Dan
Member
Member # 106

posted October 11, 2001 06:48 PM      Profile for Dan     Send New Private Message      Edit/Delete Post  Reply With Quote 
Well I hope you're having better luck than me. For kicks I tried to get it running. I just used the factory setting there on the directory. After reading in the inetd.conf, I ran tftp localhost...nothing... timeout w/out connect. So I pgrep'd looking for it and it never showed. Maybe some other service needs to be set? dunno - let me know how it turns out, I'm going to stop bothering with this so I can focus on the weekend and some suds

gl


Posts: 27 | Registered: Sep 2001  |  IP: Logged
janderson
Member
Member # 87

posted October 25, 2001 08:30 PM      Profile for janderson   Email janderson   Send New Private Message      Edit/Delete Post  Reply With Quote 
I didn't get a chance to try this out until recently, but it worked. All I did was uncomment the tftp line in my /etc/inetd.conf file.

tftp dgram udp wait nobody /usr/libexec/tcpd tftpd /Users/myusername/Temp/tftp

I also changed the directory to one of my preference... Finally I restarted inetd. That's it.


Posts: 21 | From: Dallas | Registered: Sep 2001  |  IP: Logged
<krisolson>
unregistered

posted July 13, 2002 02:13 PM           Edit/Delete Post  Reply With Quote 
how do i save my edited changed to the inetd.conf file? w /etc/inetd.conf wont do it. Also after i have made the changes, how do I reboot inetd?
IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2