Operating System - Linux
1748216 Members
3640 Online
108759 Solutions
New Discussion юеВ

howto configure tftp server to send files

 
SOLVED
Go to solution
'chris'
Super Advisor

howto configure tftp server to send files

hi

howto configure tftp server to send files ?

tftp config file looks:
------------------------------------------
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
}
------------------------------------------

I can get files from tftp server without problems,
but cannot put any files to the server.

tftpboot diretory is already chmod to 777

I have linux SUSE 8.2 installed.

kind regards
chris
5 REPLIES 5
Stuart Browne
Honored Contributor

Re: howto configure tftp server to send files

Have you created stub-files for those you are trying to put?

To put files to a 'tftp' server, the file has to already exist. You can't put files which don't.

It's just the way tftp works.

The man page for 'tftpd' SECURITY section reads:

The use of TFTP services does not require an account or password on the server system. Due to the lack of authentication information, tftpd will allow only publicly readable files (o+r) to be accessed, unless the -p option is specified. Files may be written only if they already exist and are publicly writable, unless the -c option is specified. Note that this extends the concept of ``public'' to include all users on all hosts that can be reached through the network; this may not be appropriate on all systems, and its implications should be considered before enabling TFTP service.
One long-haired git at your service...
'chris'
Super Advisor

Re: howto configure tftp server to send files

I've tried but still doesn't work:

# tftp 192.168.0.1
tftp> binary
tftp> put file.exe
Error code 2: Access denied
tftp> get file.exe
Received 1129632 bytes in 0.9 seconds
tftp> put file.exe
Error code 2: Access denied

greetings
chris
Stuart Browne
Honored Contributor

Re: howto configure tftp server to send files

What are the file permissions on '/tftpboot/file.exe' ?
One long-haired git at your service...
Alexander Chuzhoy
Honored Contributor
Solution

Re: howto configure tftp server to send files

make the line srever_args to appear like this:
server_args = -s -c /tftpboot


you should add -c which adds the ability to create files under the /tftpboot folder.....

Best regards...
'chris'
Super Advisor

Re: howto configure tftp server to send files

thanks !

with:

server_args = -s -c /tftpboot

works perfectly.

greetings
chris