| View previous topic :: View next topic |
| Author |
Message |
ferris5 n00b

Joined: 02 Sep 2003 Posts: 32
|
Posted: Mon Aug 16, 2004 4:00 pm Post subject: tftp server is not working |
|
|
Hi all,
I emerged tftp
then i try to save a file from a cisco switch to my gentoo tftp server.
cisco says: tftp error 2 , only absolute filenames allowed.
when i do it from my tftp server:
tftp>connect x.x.x.x
tftp>get <filename>
transfer timed out
???
What am i doing wrong most be something simple.
if got no iptables running because i am on the local network together with the switch.
doing nmap i see that udp port 69 is open, sooo
anyone? |
|
| Back to top |
|
 |
misho Apprentice


Joined: 15 Apr 2004 Posts: 189
|
Posted: Tue Aug 17, 2004 3:38 am Post subject: |
|
|
I reccomend using proftpd. it's extremely easy to set up and shouldn't give you any such problems. Also, if you shoose to do this, DO NOT get "gproftpd". That's probably the only way to stop proftpd from working properly. _________________ "Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z. |
|
| Back to top |
|
 |
ferris5 n00b

Joined: 02 Sep 2003 Posts: 32
|
Posted: Tue Aug 17, 2004 7:38 am Post subject: |
|
|
but is this program ftp server program, not a tftp server program?
i think its a ftp server |
|
| Back to top |
|
 |
devon l33t

Joined: 23 Jun 2003 Posts: 943
|
Posted: Tue Aug 17, 2004 3:37 pm Post subject: |
|
|
| Is there anything in /var/log/messages? Did you create the file on the TFTP server before trying to copy from the Cisco switch? What does your /etc/xinetd.d/tftpd file look like? |
|
| Back to top |
|
 |
tomcat22 n00b

Joined: 02 Jun 2004 Posts: 68
|
Posted: Tue Jan 18, 2005 3:01 pm Post subject: |
|
|
hi,
i have the same problem, currently using tftp-hpa. the tftp-server is running, but I can't get no file. requestion-result is | Code: | | Error code 2: Only absolute filenames allowed | , altough my /tftpboot directory is world readable.
here's my complete /etc/xinetd.d/tftp | Code: | service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
} |
and here my /etc/conf.d/in.tftpd | Code: | INTFTPD_PATH="/tftpboot"
INTFTPD_OPTS="${INTFTPD_PATH}"
|
any idea what is missing? thanks in advance hopefully
yours, tom _________________ Windows - gesehen, gelacht, gelöscht! |
|
| Back to top |
|
 |
CoolAJ86 n00b


Joined: 24 May 2004 Posts: 61 Location: Shelburne, VT
|
Posted: Mon Feb 14, 2005 3:54 pm Post subject: |
|
|
I did a fresh emerge of tftp-hpa and the initial init script doesn't work even. If I modify the script to echo ${INTFTP_OPTS} it shows the options that I want, however, it won't work with the variable. If a replace ${INTFTP_OPTS} with the actual parameters "-l -s /tftpboot" in /etc/init.d/in.tftpd it will work fine. When I use xinetd it with the config listed above it won't work. I've tried adding ">& /root/tftpd.err.log to catch any errors that might be causing /etc/init.d/in.tftpd to not work when I use the variable, it creates the file, but doesn't put anything in it!
Has anyone figured this out? Is there a bug for it yet? _________________ "May the source be with you."
Laterz-
~CoolAJ86
http://CoolAJ86.Havenite.net
http://www.uvm.org/vague - LUG VT |
|
| Back to top |
|
 |
tomcat22 n00b

Joined: 02 Jun 2004 Posts: 68
|
Posted: Mon Feb 14, 2005 4:29 pm Post subject: |
|
|
I don't know anymore what I did, but somehow it works now. I think after installing I just had to restart the adequate service.
tom _________________ Windows - gesehen, gelacht, gelöscht! |
|
| Back to top |
|
 |
AsianSpices Tux's lil' helper

Joined: 30 May 2005 Posts: 82
|
Posted: Fri Jun 10, 2005 3:59 pm Post subject: |
|
|
Gee that doesnt really help us out the peopl who are not reading these posts to find the solution
I had the same problem
I was trying to send a file from my router to the tftp server
But the problem was it was tellin me permission denied
So i created the file in /tftpboot and changed the privilages
and it worked.
Does anyone else hav to do this?
and if there is a solution please let me know
to tftp without creating the file first and changing the permissions |
|
| Back to top |
|
 |
PoltheMol n00b

Joined: 07 Nov 2002 Posts: 50
|
Posted: Fri Jun 10, 2005 5:21 pm Post subject: |
|
|
i had the same problem at first, but found a workaround:
for example i want to save router.confg
i first make on the tftpserver an empty textfile router.confg which gets a nice chmod 777 over it. After that i save the config from the router on the tftp, for some weird reason that seems to work out pretty fine (though it is a workaround, don't know the real issue) _________________ - signature for rent, for all your sp@m - |
|
| Back to top |
|
 |
AngelKnight Tux's lil' helper

Joined: 14 Jan 2003 Posts: 127
|
Posted: Mon Sep 26, 2005 12:07 am Post subject: TFTP permission stuff... |
|
|
| There exist TFTP servers which do not allow any uploads that would result in creating a new file. You can only replace existing files on such a TFTP server which happen to be writeable by the tftpd process running on the server. |
|
| Back to top |
|
 |
fatcat.00 Tux's lil' helper

Joined: 12 Aug 2002 Posts: 145
|
Posted: Mon Dec 03, 2007 10:15 pm Post subject: |
|
|
Old topic, yes, but since I just ran into the same permissions problem I thought I would post what fixed this for me. All I had to do is add the "-p" option to the server arguments. -p forces the tftpd daemon to only pay attention to the file permissions to determine whether a file can be read/written.
My /etc/xinetd.d/tftp file looks like this:
| Code: | service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -p -c -vvv -t 100 -s /tftpboot
log_on_success += DURATION PID HOST EXIT
log_on_failure += HOST
disable = no
only_from = localhost 127.0.0.1 10.0.1.0/24
} |
_________________ -- Fatcat |
|
| Back to top |
|
 |
|