LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2013, 04:51 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 169

Rep: Reputation: Disabled
Angry cannot get files with tftp: too many -s directories


Greetings

I am self studying for RHCE because i don`t have enough money to get a full course hence i don`t have an instructor to help me on this one.

I trying to setup an tftp server but i cant seem to be able to get files from it.

i have installed the server:

Code:
[root@vmrehel ~]# rpm -q tftp-server
tftp-server-0.49-7.el6.x86_64
and xinetd:

Code:
[root@vmrehel ~]# rpm -q xinetd
xinetd-2.3.14-39.el6_4.x86_64
Both tftpd and xinetd are "chkconfiged" ON and running. The tftp file in the /etc/xinetd.d/ is as follows:

Code:
service tftp
{
	disable	= no
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= --logfile /var/log/tftpd.log -vvvv -s /var/lib/tftpboot
	per_source		= 11
	cps			= 100 2
	flags
i have copied the /etc/services files as a test file under the /var/lib/tftpboot and made sure that read permissions are on for everyone.

Code:
[root@vmrehel ~]# ll /var/lib/tftpboot/
total 628
-rw-r--r-- 1 root root 641020 Dec 11 14:32 services

I then connect to the tftp server and confirmed that connection is healthy:

Code:
[root@vmrehel ~]# tftp 127.0.0.1
tftp> status
Connected to 127.0.0.1.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
however when i try to get the file it fails:

Code:
tftp> get services /tmp/services
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
Transfer timed out.

tftp>

and i get the following error in /var/log/messages:

Code:
Dec 11 14:48:06 vmrehel xinetd[2822]: START: tftp pid=2981 from=127.0.0.1
Dec 11 14:48:06 vmrehel in.tftpd[2981]: Unknown option: '#000'
Dec 11 14:48:06 vmrehel in.tftpd[2981]: too many -s directories
Dec 11 14:48:06 vmrehel xinetd[2822]: EXIT: tftp status=64 pid=2981 duration=0(sec)
Any ideas?
 
Old 12-11-2013, 11:00 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by tripialos View Post
I am self studying for RHCE because i don`t have enough money to get a full course hence i don`t have an instructor to help me on this one.
Best of luck! Should be feasible.

Quote:
<....>however when i try to get the file it fails:

Code:
tftp> get services /tmp/services
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
Transfer timed out.

tftp>
and i get the following error in /var/log/messages:

Code:
Dec 11 14:48:06 vmrehel xinetd[2822]: START: tftp pid=2981 from=127.0.0.1
Dec 11 14:48:06 vmrehel in.tftpd[2981]: Unknown option: '#000'
Dec 11 14:48:06 vmrehel in.tftpd[2981]: too many -s directories
Dec 11 14:48:06 vmrehel xinetd[2822]: EXIT: tftp status=64 pid=2981 duration=0(sec)
I am trying this on Centos 6.5 and have no problem after removing the --logfile option. With --logfile, the tftpd just dies, as it is not a valid option.

Disable tftp from the xinetd and run it standalone: in.tftpd -L <other options>.
 
  


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
How to store files/directories in different different directories!! anishkumarv Linux - Newbie 7 03-23-2011 05:26 PM
after re-create tftp dir, tftp doesn't work anymore lastguy Linux - Networking 2 11-16-2007 03:33 PM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
Receiving files via TFTP wswartz Linux - Software 8 09-20-2004 03:44 PM
.s files - a very simple question (tftp) webamoeba Linux - Newbie 2 11-28-2003 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 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