LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2006, 12:20 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
tftp upload


i am using tftp clinet to upload files, but getting errors.

[root@indus ~]# tftp
(to) 192.168.0.11
tftp> status
Connected to 192.168.0.11
tftp> verbose
Verbose mode on.
tftp> put install.log
putting install.log to 192.168.0.11:install.log [netascii]
Error code 1: File not found
tftp>put /root/install.log
putting install.log to 192.168.0.11:/root/install.log [netascii]
Error code 1: File not found
tftp>


whats error ?
 
Old 12-22-2006, 08:29 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
did you create a /tftpboot directory on the server and does it have the right permissions?
 
Old 12-22-2006, 12:34 PM   #3
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
When you go in a tftp server you are chrooted! you tell to the server to put a file from the server to the server.. I don't understand why you don't use ftp.. tftp is used for diskless client. http://en.wikipedia.org/wiki/Trivial...nsfer_Protocol
 
Old 12-22-2006, 12:44 PM   #4
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
sorry.. put is the correct command.. it works for me (I have a tftp server for a diskless station)
 
Old 12-22-2006, 12:48 PM   #5
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
Do you have a /etc/in.tftpd or /etc/tftpd like this: (/etc/conf.d/in.tftpd in gentoo)
# /etc/init.d/in.tftpd

# Path to server files from
INTFTPD_PATH="/diskless"
INTFTPD_USER="nobody"
# For more options, see tftpd(8)
INTFTPD_OPTS="-u ${INTFTPD_USER} -l -vvvvvv -p -c -s ${INTFTPD_PATH}"
 
Old 12-25-2006, 11:59 PM   #6
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Original Poster
Rep: Reputation: 31
thanks to all,

i am using tftp for saving running-configuration and ios of routers. so testing from linux(client tftp) to linux (server tftp)

2nd point, i am at client side and install.log is in root's home directory. and Error message is "file not found"
and /tftpboot/ exists, with permissions

[root@me ~]#l -d /tftpboot/
drwxr-xr-x 2 root root 4096 Feb 12 2006 /tftpboot/



[root@me ~]# vi /etc/xinetd.d/tftp

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

i am getting errors on client side "file not found"
 
Old 12-28-2006, 10:00 AM   #7
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Don't know for sure but i don't think tftp runs as the root user so you will have to change your directory's permissions on the tftpserver.
With "drwxr-xr-x 2 root root 4096 Feb 12 2006 /tftpboot/" only the root user can write to the directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd upload to a folder other than 'upload' fooboo Linux - Software 4 04-27-2006 08:51 PM
tftp baparekh Linux - Newbie 1 03-07-2005 03:51 PM
IglooFTP-PRO refuses to upload files in folder when I upload folder eBopBob Linux - Software 0 08-27-2004 06:52 AM
TFTP-Problem: TFTP timed out Bikerpete Linux - General 2 08-14-2003 06:25 AM
help with tftp please Tigger Linux - Security 3 06-11-2003 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration