LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-08-2004, 11:38 PM   #1
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Rep: Reputation: 30
How do I set up an TFTP server in Slackware 9.1?


I don't see any rc.tftpd or similar in /etc/rc.d. I want to use it to back up my CISCO router configs.
 
Old 03-09-2004, 02:23 AM   #2
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
Check you /etc/inetd.conf , uncoment tha line below and restart the inetd service..

# tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd

to

tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd

Restart the inetd daemon.
/etc/rc.d/rc.inetd restart
 
Old 03-09-2004, 10:50 AM   #3
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
This didn't work for me. When I try to tftp from my cisco router to my slack machine it times out. It's on my local lan so it can't be an IPTABLES rule. Suggestions?
 
Old 03-09-2004, 09:09 PM   #4
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
Ok,

1 - Comment the tftp line in /etc/inetd.conf and restart the inetd daemon ( /etc/rc.d/rc.inetd restart )

2 - Make diretory whre these files will be stored
mkdir /tftpd

3 - Now running the in.ftpd daemon manualy

/usr/sbin/in.tftpd -c -l -v -s /tftp


4 - Edit /etc/rc.d/rc.local and put the below line:

if [ -x /usr/sbin/in.ftpd ]; then
/usr/sbin/in.tftpd -c -l -v -s /tftp
fi

I think for now will be working.

Regards,
Ricardson
 
Old 03-09-2004, 09:19 PM   #5
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
Now I have other i think the best way.


1 - Make directory for tftp

make /tftp

2 - Edit /etc/inetd.conf and change make some changes:

#tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd

to

tftp dgram udp wait root /usr/sbin/tcpd in.tftpd -c -v -s /tftp

I need to change user nobody to root and put more parameters for in.tftpd


3 - Restart the inetd daemon.



I realy think now we solved it and now we has two way to start in.tftpd.
 
Old 03-09-2004, 11:26 PM   #6
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
This still isn't working for me. It still times out. I changed that line in inetd to "tftp dgram udp wait root /usr/sbin/tcpd in.tftpd -c -v -s /tftp", created that directory, restarted inetd, but got timeouts. A ps aux saw tftp running, but not tftpd running. And when I rebooted, tftp wasn't even running.
 
Old 03-10-2004, 01:05 AM   #7
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
I made a mistake !!! you need change the permission of the /tftp to user and group nobody.
I make some tests using with lftp ip_address and i can send files and get files localy and remotely.
 
Old 03-10-2004, 01:24 AM   #8
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
Still times out. There must be something funky going on because I cant even ping my slack machine from windows. From slack to windows I can ping fine, though.
 
Old 03-10-2004, 01:44 AM   #9
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
You have configured tcp_wrappers? check your /etc/hosts.deny, if you have ALL:ALL in your hosts.deny you cannot login in tftpd.

If you have other linux make one test using lftp and try to login at ltftp server.
 
Old 03-10-2004, 02:03 AM   #10
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ricardson
You have configured tcp_wrappers? check your /etc/hosts.deny, if you have ALL:ALL in your hosts.deny you cannot login in tftpd.

If you have other linux make one test using lftp and try to login at ltftp server.
My hosts.allow/deny are empty.
 
Old 03-10-2004, 02:31 AM   #11
r1w1s1
Member
 
Registered: Mar 2004
Location: São Paulo - Brazil
Distribution: Slackware
Posts: 61
Blog Entries: 1

Rep: Reputation: 37
I think that your CISCO router has lftp client and them try to access yout lftpd server or you can make some basics tests using the same lftpd server machine to connect like below:

1 - Put one file like /etc/hosts to /tftp

2 - try to login localy

cd /root
tftp localhost
get hosts
quit

3 - Check in /root if have hosts file.

I realy think you need some tests localy firts.
 
Old 02-06-2008, 11:54 PM   #12
emdog4
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Rep: Reputation: 1
PXE Error T01 File Not Found

hi, this is my first post here but I wanted to offer a little insight to this problem because I have found these forums very helpful. I am using TFTP to boot diskless workstations (nodes) for a "beowulf" cluster and the problem I was having was with a Error PXE-T01 error File not Found. make sure your /etc/dhcpd.conf file is set to:
Code:
filename "pxelinux.0"
rather than
Code:
filename "/tftpboot/pxelinux.0"
Because you have already defined the base folder in
Code:
/usr/sbin/in.tftpd -l -u root -s /tftpboot
Also make sure your permissions for user AND group are set to the same user you define in the command. (In my case above this was root) You can find this information by doing
Code:
ls -lah
inside the /tftpboot folder

this fixed my problem when I rebooted. thanks for all the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TFTP Server mattp Linux - Software 8 01-18-2010 04:28 PM
how to set up tftp service techjp Linux - Networking 1 07-03-2004 01:30 AM
can't set up dial-in server on slackware 9.1 NuLLiFiEd Slackware 2 05-20-2004 08:45 AM
TFTP server not serving in slackware 9.1 cjdock Slackware 8 10-16-2003 01:33 PM
X Windows server security set back to host access on Slackware 9.1 Jerre Cope Slackware 0 10-14-2003 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration