[CentOS] put command is not working in tftp server
Hi Friends, I am trying to configure a tftp server on Centos 5.0. get command is working fine but not the put command. I searched on the google and tried few things like 777 on /tftpboot, changing ownership to nobody on /tftpboot and also in /etc/xinetd.d/tftp, adding -c as server_args but still the problem persists. tftp -v localhost Connected to localhost.localdomain (127.0.0.1), port 69 tftp put wine-core-0.9.50-1.el5.rf.i386.rpm putting wine-core-0.9.50-1.el5.rf.i386.rpm to localhost.localdomain:wine-core-0.9.50-1.el5.rf.i386.rpm [netascii] Error code 1: File not found tftp localhost tftp get wine-core-0.9.50-1.el5.rf.i386.rpm ls -la /etc/xinetd.d/tftp -rw-r--r-- 1 root root 509 Feb 28 03:09 /etc/xinetd.d/tftp cat /etc/xinetd.d/tftp | grep -v # service tftp { socket_type = dgram protocol= udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no per_source= 11 cps = 100 2 flags = IPv4 } rpm -qa | grep tftp tftp-server-0.42-3.1.el5.centos tftp-0.42-3.1.el5.centos Please let me know if you need any further inputs. Thanks Regards Ankush ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] put command is not working in tftp server
ankush grover wrote: Please let me know if you need any further inputs. I'm not sure if it applies to all tftp servers but for the most part the file your uploading must already exist and be world writable. touch /tftpboot/filename chmod 666 /tftpboot/filename then upload filename (assuming /tftpboot/ is where your root is at) nate ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] put command is not working in tftp server
nate ha scritto: ankush grover wrote: Please let me know if you need any further inputs. I'm not sure if it applies to all tftp servers but for the most part the file your uploading must already exist and be world writable. touch /tftpboot/filename chmod 666 /tftpboot/filename then upload filename (assuming /tftpboot/ is where your root is at) nate Yes, this is done for security reasons. If you want you can override this adding the -c flag to the server_args line (server_args = -c -s /tftpboot) but since there is no authentication anyone which can reach the server can write (or overwrite) anything on \tftpboot directory Lorenzo ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] put command is not working in tftp server
On Wed, Feb 27, 2008 at 10:27 PM, Lorenzo Quatrini [EMAIL PROTECTED] wrote: nate ha scritto: ankush grover wrote: Please let me know if you need any further inputs. I'm not sure if it applies to all tftp servers but for the most part the file your uploading must already exist and be world writable. touch /tftpboot/filename chmod 666 /tftpboot/filename then upload filename (assuming /tftpboot/ is where your root is at) nate Yes, this is done for security reasons. If you want you can override this adding the -c flag to the server_args line (server_args = -c -s /tftpboot) but since there is no authentication anyone which can reach the server can write (or overwrite) anything on \tftpboot directory Lorenzo Hi , Security is not an issue on this server as this is a testing server. I added the -c parameter and now put command is working fine. Thanks Thanks Regards Ankush ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos