Operating System - HP-UX
1753842 Members
8633 Online
108806 Solutions
New Discussion юеВ

Re: TFTP PUT works only if file touched in tftp root in advanced

 
SOLVED
Go to solution
Neoma
Frequent Advisor

TFTP PUT works only if file touched in tftp root in advanced

Hi all,

I have tftp server setup on HP-UXv3.
I have uncommented the tftp user entry in /etc/passwd and server entry in /etc/inetd.conf.
Added a group guest and tfp user added in guest group.Home directory for tftp user /home/tftp

from the other m/c using tftp client I am able to do tftp Get without any problem.
For the tftp put, it works only if I touch the file in /home/tftp well in advance before doing put. Otherwise it does not work.
I think due to some security reason this may be imlemented this way. But is there any way to remove this restriction so that whatever is uploaded using put is transferred to /home/tftp on the server where tftp server is setup.


4 REPLIES 4
Steven Schweda
Honored Contributor
Solution

Re: TFTP PUT works only if file touched in tftp root in advanced

> I think due to some security reason this
> may be imlemented this way.

You're right.

> But is there any way [...]

"man tftpd"? I don't think so. I sure hope
not.

TFTP is by nature _so_ insecure that a
restriction like this is only reasonable. If
you need more flexibility, don't use TFTP?
(Why are you using TFTP now?)
Neoma
Frequent Advisor

Re: TFTP PUT works only if file touched in tftp root in advanced

Thanx for replying.

Well one of the device in my network supports tftp to upload some files to external system. So I had to setup tftp server for the same reason.
No doubt moving to something else other than tftp would be a good move.
Anyways thanx for your post.
Neoma
Frequent Advisor

Re: TFTP PUT works only if file touched in tftp root in advanced

Thaxn
Steven Schweda
Honored Contributor

Re: TFTP PUT works only if file touched in tftp root in advanced

If you can use something other than TFTP, you
probably should. If this "device" is limited
to using TFTP, then, depending on how the
file nemes are determined, and how you
interact with the "device", it may possible
to automate the required "touch" operation.
From here, it's hard to tell what's possible
with the info available.