Groups | Search | Server Info | Login | Register


Groups > alt.os.linux > #81546

Problems with tftp & tftpd on Ubuntu 22, upgraded from 18

From Java Jive <java@evij.com.invalid>
Newsgroups alt.os.linux, uk.comp.os.linux
Subject Problems with tftp & tftpd on Ubuntu 22, upgraded from 18
Date 2025-05-16 13:03 +0100
Organization A noiseless patient Spider
Message-ID <10079i2$3ojpv$1@dont-email.me> (permalink)

Cross-posted to 2 groups.

Show all headers | View raw


As per title, I can get neither tftp or tftpd  -  at least I think 
neither but it's difficult to be sure  -  to work under Ubuntu 22. After 
some initial difficulties, I decided to uninstall and reinstall. Upon 
reinstallation, I received a warning that the file '/etc/inetd.conf' did 
not exist so I uninstalled them both again, 'touch'ed to create an empty 
'/etc/inetd.conf', and then reinstalled again, this time without undue 
warnings.  The two config files now read as follows ...

user@Computer:/home$ cat /etc/inetd.conf
tftp		dgram	udp	wait	nobody	/usr/sbin/tcpd	/usr/sbin/in.tftpd /srv/tftp

user@Computer:/home$ cat /etc/xinetd.d/tftp
service tftp
{
	protocol    = udp
	port        = 69
	socket_type = dgram
	wait        = yes
	user        = nobody
	server      = /usr/sbin/in.tftpd
	server_args = /home/tftpboot
	disable     = no
}

... and, to be sure the firewall isn't the problem, ...

user@Computer:/home$ sudo ufw status
Status: inactive

... then ...

user@Computer:/home$ sudo service xinetd restart

... and syslog looks alright to my eyes at least ...

user@Computer:/home$ tail -50 /var/log/syslog
[...]
May 16 11:37:41 Computer systemd[1]: Stopping LSB: Starts or stops the 
xinetd daemon....
May 16 11:37:41 Computer xinetd[1925]:  * Stopping internet superserver 
xinetd
May 16 11:37:41 Computer xinetd[1909]: Exiting...
May 16 11:37:41 Computer xinetd[1925]:    ...done.
May 16 11:37:41 Computer systemd[1]: xinetd.service: Deactivated 
successfully.
May 16 11:37:41 Computer systemd[1]: Stopped LSB: Starts or stops the 
xinetd daemon..
May 16 11:37:41 Computer systemd[1]: Starting LSB: Starts or stops the 
xinetd daemon....
May 16 11:37:41 Computer xinetd[1933]:  * Starting internet superserver 
xinetd
May 16 11:37:41 Computer xinetd[1933]:    ...done.
May 16 11:37:41 Computer systemd[1]: Started LSB: Starts or stops the 
xinetd daemon..
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=14]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=28]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=14]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=26]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=14]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/discard-udp [file=/etc/xinetd.d/discard-udp] [line=25]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=14]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=26]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/servers [file=/etc/xinetd.d/servers] [line=14]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/services [file=/etc/xinetd.d/services] [line=13]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/tftp [file=/etc/xinetd.d/tftp] [line=13]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=11]
May 16 11:37:42 Computer xinetd[1945]: Reading included configuration 
file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=28]
May 16 11:37:42 Computer xinetd[1945]: added service tftp 
[file=/etc/inetd.conf] [line=1]
May 16 11:37:42 Computer xinetd[1945]: 2.3.15.3 started with libwrap 
loadavg labeled-networking options compiled in.
May 16 11:37:42 Computer xinetd[1945]: Started working: 2 available services

... but no listener is found on port 69 ...

user@Computer:/home$ netstat -na | grep LIST | grep 69
unix  2      [ ACC ]     STREAM     LISTENING     9169 
/var/run/samba/nmbd/unexpected

... and generally there is no evidence of any tftp service actually 
running, for example ...

user@Computer:/home$ ps -aux | grep -v grep | grep tftp
user@Computer:/home$ systemctl list-units --no-pager | grep tftp
user@Computer:/home$ sudo service --status-all | grep tftp

... all find nothing.  Unsurprisingly therefore, when I try to set up a 
test, nothing works ...

user@Computer:/home$ sudo echo "This is a TFTP test from $(hostname)" > 
/home/tftpboot/test.txt
user@Computer:/home$ sudo chown nobody:nogroup /home/tftpboot/test.txt
user@Computer:/home$ ll /home/tftpboot/test.txt
-rw-r--r-- 1 nobody nogroup 36 2025-05-15 21:43 /home/tftpboot/test.txt
user@Computer:/home$ cat /home/tftpboot/test.txt
This is a TFTP test from Computer
user@Computer:/home$ tftp localhost
tftp> get test.txt
tftp: test.txt: Permission denied
tftp> q

Using 127.0.0.1 instead of localhost suffers the same fate, as does an 
attempt to get a similar test text file from one of the Zyxel NSA221 
NASs, as does an attempt for a non-existent file or a non-existent 
server, so the error given could mean almost any type of failure and I 
don't know whether I have one problem with the client on the Ubuntu PC, 
or two problems with the service on each machine, PC and NAS, or all 
three.  I was going to install the windows TFTP client to test with 
that, but for some reason or other that failed, and there's nothing in 
the event logs to suggest why, so for the moment I'm stuck.

BTW, in case it's relevant, IPv6 is disabled on this PC:

user@Computer:/home$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state 
UP group default qlen 1000
     link/ether ec:f4:bb:1f:5c:55 brd ff:ff:ff:ff:ff:ff
     altname enp0s25
     inet 192.168.1.[anonymised]/24 brd 192.168.1.255 scope global 
dynamic noprefixroute eno1
        valid_lft 81052sec preferred_lft 81052sec
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue 
state DOWN group default qlen 1000
     link/ether ac:7b:a1:dd:6f:03 brd ff:ff:ff:ff:ff:ff

Any helpful ideas?

-- 

Fake news kills!

I may be contacted via the contact address given on my website: 
www.macfh.co.uk

Back to alt.os.linux | Previous | NextNext in thread | Find similar


Thread

Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Java Jive <java@evij.com.invalid> - 2025-05-16 13:03 +0100
  Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Theo <theom+news@chiark.greenend.org.uk> - 2025-05-16 13:36 +0100
    Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Java Jive <java@evij.com.invalid> - 2025-05-16 17:39 +0100
      Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Theo <theom+news@chiark.greenend.org.uk> - 2025-05-16 20:15 +0100
        Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Java Jive <java@evij.com.invalid> - 2025-05-16 20:51 +0100
          Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 - SOLVED Java Jive <java@evij.com.invalid> - 2025-05-16 22:12 +0100
            Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 - SOLVED Theo <theom+news@chiark.greenend.org.uk> - 2025-05-18 11:55 +0100
      Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Java Jive <java@evij.com.invalid> - 2025-05-16 20:22 +0100
  Re: Problems with tftp & tftpd on Ubuntu 22, upgraded from 18 Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-23 01:10 +0000
  Re: Problems with tftp & tftpd on Ubuntu 24, upgraded from 22 (was Ubuntu 22, upgraded from 18) Java Jive <java@evij.com.invalid> - 2025-10-23 20:22 +0100
    Re: Problems with tftp & tftpd on Ubuntu 24, upgraded from 22 (was Ubuntu 22, upgraded from 18) "J.O. Aho" <user@example.net> - 2025-10-23 21:29 +0200
      Re: Problems with tftp & tftpd on Ubuntu 24, upgraded from 22 (was Ubuntu 22, upgraded from 18) Java Jive <java@evij.com.invalid> - 2025-10-24 00:16 +0100

csiph-web