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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-10-2005, 01:34 PM
|
#1
|
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Rep:
|
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).
|
|
|
|
11-18-2005, 12:22 PM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,684
|
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.
|
|
|
|
11-18-2005, 12:35 PM
|
#3
|
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Original Poster
Rep:
|
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.
|
|
|
|
11-18-2005, 01:04 PM
|
#4
|
|
Moderator
Registered: Aug 2002
Posts: 10,684
|
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.
|
|
|
|
03-20-2007, 06:19 PM
|
#5
|
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
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.
|
|
|
|
01-16-2010, 09:00 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2009
Posts: 25
Rep:
|
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
|
|
|
|
01-16-2010, 11:04 PM
|
#7
|
|
Guru
Registered: Mar 2008
Posts: 8,526
|
|
|
|
0 members found this post helpful.
|
01-17-2010, 08:50 AM
|
#8
|
|
LQ Newbie
Registered: Oct 2009
Posts: 25
Rep:
|
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
|
|
|
|
01-18-2010, 04:28 PM
|
#9
|
|
Guru
Registered: Mar 2008
Posts: 8,526
|
Post new thread, please don't hijack a dis-similar post.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:15 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|