Score:0

Why won't tftpd allow uploading files?

bo flag

I've installed tftpd-hpa on Ubuntu 20.04 and I get Error code 0: Permission denied when trying to upload files. Downloading files works fine. I've read several other posts about this topic but none of them represent my situation.

I added --create to the config file and left everything else at default. The server is running as root using this command:

/usr/sbin/in.tftpd --listen --user tftp --address :69 --secure --create /srv/tftp

The permissions on that directory are like this:

$ ll /srv/tftp/
total 8
drwxr-xr-x 2 root nogroup 4096 Dec 16 10:36 ./
drwxr-xr-x 3 root root    4096 Dec 16 09:53 ../
-rw-r--r-- 1 root root       0 Dec 16 10:36 file.txt

I even tried running the client as root and that doesn't help:

# tftp -v localhost -c put file2.txt
Connected to localhost (127.0.0.1), port 69
putting file2.txt to localhost:file2.txt [netascii]
Error code 0: Permission denied
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.