Red Hat Bugzilla – Bug 164366
tftp server doesn't allow overwriting as per man page
Last modified: 2007-11-30 17:11:10 EST
Description of problem:
According to the man page, 'touch /tftpboot/somefile; chmod 666
/tftpboot/somefile' should allow you to 'put somefile' using tftp.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Enable tftpd (chkconfig tftp on; service xinetd restart)
2. touch /tftpboot/somefile; chmod 666 /tftpboot/somefile
3. tftp localhost
4. put /etc/issue somefile
File not found
Contents should be put successfully
Problem is in server, not client.
strace bombs with buffer overflow error when tracing tftpd.
The steps above work for me with SELinux turned off. When I turn on the SELinux
with `setenforce 1` the file is not uploaded with "Permission denied" error. Can
you please retest this issue with SELinux turned off? (eg. add `setenforce 0`
before your testcase)