LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-10-2005, 01:34 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
TFTP Server


I need a simple TFTP server to get and pull configs of Cisco equipment. All the info I am finding on TFTP servers running on linux are about network booting. Can anyone suggest a light TFTP server daemon for Linux (I have slackware).
 
Old 11-18-2005, 12:22 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,900

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
You do not need a server. Just use the tftp client. However, if the equipment configuration server requires a username, password then wget would be a better choice.

See man pages for tfpt and wget for more info.
 
Old 11-18-2005, 12:35 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
No, I need to connect the cisco device to a TFTP server, so the client would be the switch, router etc. The linux machine (my laptop) needs an TFTP server to I can get/put files onto the cisco boxes.
 
Old 11-18-2005, 01:04 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,900

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
I misunderstood the problem. There are several tftp servers like tftp-hpa. Check out freshmeat .net. This one looks promising for your application:
http://freshmeat.net/projects/utftpd/

Last edited by michaelk; 11-18-2005 at 01:06 PM.
 
Old 03-20-2007, 06:19 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Hey matt, did you ever get utftpd working? I just installed it but the USAGE docs are not very clear on how to configure it. I read that you have to run utftpd_make, but i don't know how to do this to generate a file that you need to put into /etc/inet.d along with some other info. More specifically:
Code:
Put something like this:
    utftpd -c /etc/utftpd.cdb -C /tftp -u rightless_user
into your internet services configuration file (typically
/etc/inetd.conf), where
-       /etc/utftpd.cdb
    is a configuration file created by utftpd_make
-   /tftp
    is the tftp area the daemon will chroot to (yes, _do_ that.
        TFTP has no security).
-   rightless_user is some user which may read or write to
    files in the tftp area, but has no other rights. utftpd
        will change to that user just after it did the chroot().
A full line in the configuration file may look like this:
  tftp dgram udp wait root /usr/local/sbin/utftpd \
    utftpd -c /etc/utftpd.cdb -C /tftp -u rightless_user
The last lines say that you need to create a /etc/utftpd.conf file. So i did, only with the following lines uncommented:
Code:
default:sccs-get(/bin/get) sccs-delta(/bin/delta) \
sccs-clean(/bin/clean) sccs-admin(/bin/admin) \
rcs-ci(/bin/ci) rcs-co(/bin/co)
192.168.220.13:read,write,create(/home/ralvarez/hda3/pix:/config)
And then, it says to run: utftpd_make /etc/utftpd.cdb /etc/utftpd.tmp /etc/utftpd.conf
The thing is that even when running utftpd_make from where it's located, i get a '-sh: .utftpd_make: command not found' error. So i got kinda lost.

If it's not too much trouble, perhaps you can share the rest of steps you went through to get tftp working with your cisco boxes, since i am in diers need to do this too.

Thanks a bunch man.

Last edited by trebek; 03-20-2007 at 06:38 PM.
 
Old 01-16-2010, 09:00 PM   #6
shylock_1
LQ Newbie
 
Registered: Oct 2009
Posts: 25

Rep: Reputation: 0
TFTP blues...

Hi forum,

I am using Redhat ent5 svr. trying to set up tftp server, but not going any where. I have following setting in my /etc/xinetd.d/tftp file

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

when I restart "/etc/rc.d/init.d/xinetd.d restart" to restart xinetd it restart without problem, even I can ps -eF | grep tftp and I can see the service is up and running.

But when I try to do tftp at shell prompt I do not get any response, instead following response.

[root@tomcat shy]# tftp
bash: tftp: command not found

Is something I am doing wrong? Service Manager also report the tftp service is running with xinetd tftp should response, but in my case does not!
Does any one has same problem on RH enterprise 5 server?

Thanks in advance.
shy
 
Old 01-16-2010, 11:04 PM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 11,549

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
http://www.linuxforums.org/forum/sla...re-10-2-a.html
 
0 members found this post helpful.
Old 01-17-2010, 08:50 AM   #8
shylock_1
LQ Newbie
 
Registered: Oct 2009
Posts: 25

Rep: Reputation: 0
following provided link I analysed but it pertain to slackware box. I am using REDHAT enterprise server 5 where I cannot find file named /etc/inetd.conf instead xinetd.conf. The entry or word I am looking for is tftp or any thing related to that particular so I can invoke tftp server; whose content as follow:

#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.

defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =

# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT

# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10

# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no

# setup environmental attributes
#
# passenv =
groups = yes
umask = 002

# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}

includedir /etc/xinetd.d

Help much appriciated, thanks

shy
 
Old 01-18-2010, 04:28 PM   #9
jefro
Guru
 
Registered: Mar 2008
Posts: 11,549

Rep: Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405Reputation: 1405
Post new thread, please don't hijack a dis-similar post.
 
  


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
TFTP-Server Problem tomcat22 Slackware 1 11-17-2005 02:54 PM
inteligent tftp server truthbeliever Linux - Networking 0 10-31-2005 06:57 AM
Need tftp server with install script GUIPenguin Linux - Software 0 11-08-2004 10:36 PM
Debian Tftp Server ac402 Linux - Software 0 12-27-2003 04:10 PM
TFTP server not serving in slackware 9.1 cjdock Slackware 8 10-16-2003 01:33 PM


All times are GMT -5. The time now is 09:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration