home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux      Getting to be as bloated as Windows!      107,822 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 107,293 of 107,822   
   Java Jive to All   
   Problems with tftp & tftpd on Ubuntu 22,   
   16 May 25 13:03:13   
   
   XPost: uk.comp.os.linux   
   From: java@evij.com.invalid   
      
   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:  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:  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:  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   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca