LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   TFTP Server (https://www.linuxquestions.org/questions/linux-software-2/tftp-server-381857/)

mattp 11-10-2005 01:34 PM

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).

michaelk 11-18-2005 12:22 PM

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.

mattp 11-18-2005 12:35 PM

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.

michaelk 11-18-2005 01:04 PM

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/

trebek 03-20-2007 06:19 PM

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.

shylock_1 01-16-2010 09:00 PM

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

jefro 01-16-2010 11:04 PM

http://www.linuxforums.org/forum/sla...re-10-2-a.html

shylock_1 01-17-2010 08:50 AM

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

jefro 01-18-2010 04:28 PM

Post new thread, please don't hijack a dis-similar post.


All times are GMT -5. The time now is 01:23 PM.