LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-16-2013, 02:00 AM   #1
akshay_8985
LQ Newbie
 
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Tftp Server not running...!!


HI mates

I am facing the issue that when I run the command /etc/xinetd.d/tftp the output which I got was:-
"Permisson Denied"

Also i have read various related posts and have fired the following commands and the result was like this:-


[root@wifidc2 ~]#
[root@wifidc2 ~]# ps -aux |grep tftpd
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root 7916 0.0 0.0 103300 880 pts/3 S+ 12:13 0:00 grep tftpd
[root@wifidc2 ~]# ps -ef |grep tftpd
root 7924 7827 0 12:14 pts/3 00:00:00 grep tftpd
[root@wifidc2 ~]#
[root@wifidc2 ~]#
[root@wifidc2 ~]#
[root@wifidc2 ~]# /etc/xinetd.d/tftp
-bash: /etc/xinetd.d/tftp: Permission denied
[root@wifidc2 ~]#
[root@wifidc2 ~]#


I have also ensured that the firewall is off.

Plz suggest the way forward...!!!


BR//
Akshay
 
Old 05-16-2013, 03:58 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,462

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
If it lives under xinetd.d, the its a service that that is controlled by the super daemon/service of that name (xinetd).
Inside the dir, there will be a file with the tftpd name and you'd need to edit that to set 'disable=no'.
Then when you connect from another system, xinetd will catch the request for tftpd and activate it for you.

Have a read of this:
http://www.linuxtopia.org/online_boo...rappers-xinetd
 
Old 05-16-2013, 04:08 AM   #3
akshay_8985
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Chris,

Thnks 4 the reply.


I have done the editing in the file well before posting the issue and thereafter restarted the tftp deamon.

Seems like a problem is due to some other thing.

Any suggestion will be of great use:-


Plz see the tftp file logs below.


[root@wifidc2 ~]# more /etc/xinetd.d/tftp
tftp tftp.rpmsave
[root@wifidc2 ~]# more /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
[root@wifidc2 ~]#


BR//
Akshay
 
Old 05-16-2013, 06:43 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 13,135

Rep: Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058
What linux distribution/version are you running?

There is no problem. In a nutshell tftp runs via xinetd so you need to start xinetd.

If not running.
/etc/init.d/xinetd start
 
Old 05-16-2013, 07:50 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
What exactly you wanted to achieve by executing /etc/xinetd.d/tftp command? Were you trying to start the service using /etc/xinetd.d/tftp ?
If it is so, you'll definitely get the error.

Use the command suggested by michaelk.
 
Old 05-17-2013, 01:56 AM   #6
akshay_8985
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi Michael

I am running Redhat Linux 6.2.


Aside this

StayaVer,
What I need is to backup a configuration file from a remote node to my server using tftp.
But as soon as is run the backup script it goes from IDLE state to the IN PROGRESS state but the backup doesnot gets completed and hence there is no backup file at the location /var/lib/tftpboot.


Rgds
AKshay
 
Old 05-17-2013, 02:02 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Quote:
What I need is to backup a configuration file from a remote node to my server using tftp.
But why are you making things complicated when there are other tools available to backup files from server to server?
 
Old 05-17-2013, 02:21 AM   #8
akshay_8985
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Dear I am trying to run the tftp on my server and there by trying fetch the backup file by jst running a backup command from my server's client.
 
Old 05-17-2013, 02:27 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Hi,

ok, so you are trying to configure an tftp server: fine. What distro and version are you using and how did you install tftp?

Evo2.

PS. Whether tftp is the right tool for the job is another topic...
 
Old 05-17-2013, 02:29 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,462

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
tftp is almost definitely the wrong tool.
Its basically used to load remote clients that depend on servers for their boot SW.

For backups, use scp/sftp or std FTP.
 
Old 05-17-2013, 02:35 AM   #11
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Or you may use rsync command also.
 
Old 05-17-2013, 03:28 AM   #12
akshay_8985
LQ Newbie
 
Registered: May 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I jst want to add one thing here guys

I tried to take the backup of the node through tftp by installing a 3cDaemon on my laptop itself and the same got successfully completed and the backup file was generated as the result of the completion of the backup part.
Hence it concluded that backup acn be tken through tftp.

But the same thing is not happening when I am trying to do the same by tftp on my server.

Rgds
Akshay
 
Old 05-17-2013, 04:13 AM   #13
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
akshay,

How did you do this? Can you share with us?
 
Old 05-17-2013, 04:39 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 13,135

Rep: Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058Reputation: 1058
By default, tftpd will only allow upload of files that already exist. The windows tftp server does not have this limitation. You need to use the -c option. http://linux.die.net/man/8/tftpd

It could also be a selinux problem.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
in.tftp pxelinux.0_ fails with TFTP open timeout deadeyes Linux - Server 1 05-28-2010 10:07 AM
TFTP server in Redhat Linux enterprise Server 5 dominiclajs Linux - Newbie 1 05-30-2008 04:03 AM
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
TFTP server yhus Linux - Networking 5 06-18-2006 01:44 PM


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