Hello,
I'm running the default install of atftpd as provided by apt in Ubuntu 22.
Configuration in /etc/default/atftpd is unchanged from the default except I have changed the default '--verbose=5' to '--verbose=7'
If I try to get a test file 'foo' present at /srv/tftp/foo, 'journalctl -f --unit atftpd.service' shows:
Oct 03 10:41:55 tftp systemd[1]: Started Advanced TFTP Server.
Oct 03 10:41:55 tftp atftpd[6968]: Advanced Trivial FTP server started (0.7.5)
Oct 03 10:41:55 tftp atftpd[6968]: started by inetd
Oct 03 10:41:55 tftp atftpd[6968]: logging level: 7
Oct 03 10:41:55 tftp atftpd[6968]: directory: /srv/tftp/
Oct 03 10:41:55 tftp atftpd[6968]: user: nobody.nogroup
Oct 03 10:41:55 tftp atftpd[6968]: log file: syslog
Oct 03 10:41:55 tftp atftpd[6968]: not forcing to listen on local interfaces.
Oct 03 10:41:55 tftp atftpd[6968]: server timeout: 300
Oct 03 10:41:55 tftp atftpd[6968]: tftp retry timeout: 5
Oct 03 10:41:55 tftp atftpd[6968]: maximum number of thread: 100
Oct 03 10:41:55 tftp atftpd[6968]: option timeout: enabled
Oct 03 10:41:55 tftp atftpd[6968]: option tzise: enabled
Oct 03 10:41:55 tftp atftpd[6968]: option blksize: enabled
Oct 03 10:41:55 tftp atftpd[6968]: option windowsize: enabled
Oct 03 10:41:55 tftp atftpd[6968]: option multicast: enabled
Oct 03 10:41:55 tftp atftpd[6968]: address range: 239.239.239.0-255
Oct 03 10:41:55 tftp atftpd[6968]: port range: 1758
Oct 03 10:41:55 tftp atftpd[6968]: socket may listen on any address, including broadcast
Oct 03 10:41:55 tftp atftpd[6968]: Creating new socket: :::50554
Oct 03 10:41:55 tftp atftpd[6968]: Serving foo to ::ffff:10.6.164.109:56665
Oct 03 10:41:55 tftp systemd[1]: atftpd.service: Main process exited, code=killed, status=6/ABRT
Oct 03 10:41:55 tftp systemd[1]: atftpd.service: Failed with result 'signal'.
However, if I stop the socket using systemctl and launch the binary directly from the shell, using the same arguments as in /etc/default/atftpd and adding '--daemon' to the beginning of the arguments, I can 'get' the file foo. It lands on the client and on the server 'journalctl -f | grep atftp' shows:
Oct 03 10:51:02 tftp atftpd[7016]: socket may listen on any address, including broadcast
Oct 03 10:51:02 tftp atftpd[7016]: Creating new socket: 10.6.164.61:40125
Oct 03 10:51:02 tftp atftpd[7016]: Serving foo to 10.6.164.109:51809
Oct 03 10:51:02 tftp atftpd[7016]: End of transfer
Oct 03 10:51:02 tftp atftpd[7016]: Server thread exiting
I've confirmed that the /srv/tftp directory has 0777 permissions although the results were the same when it had 0755 permissions and I'd prefer this service be read only.
Short version, I'm thinking that the socket is somehow launching the binary differently than a shell session.
Any help would be appreciated.
Got the same problem with Ubuntu 22.04. Need help
tried via the console directly: same problem.