Problem with tftp server
Jerry Geis
jerry.geis at gmail.com
Sat Jan 29 15:10:28 UTC 2022
On Fri, Jan 28, 2022 at 5:24 PM R C <cjvijf at gmail.com> wrote:
>
> On 1/28/22 15:07, Tommy Trussell wrote:
>
> On Fri, Jan 28, 2022 at 12:26 PM Jerry Geis <jerry.geis at gmail.com> wrote:
>
>>
>>
>> On Thu, Jan 27, 2022 at 11:03 PM Tommy Trussell <tommy.trussell at gmail.com>
>> wrote:
>>
>>>
>>> I have not used tftp in awhile, but have you checked the permissions on
>>> the file "jerry" in /tftpboot ? The file may be invisible to the daemon due
>>> to the wrong group or file permissions.
>>>
>>> You might also try to put a different file onto the server using tftp
>>> and see what permissions the resulting file has.
>>>
>>> The man page for your version of tftpd will likely contain some useful
>>> information.
>>>
>>>
>>> HI Tommy,
>>
>> The file has permission:
>> -rw-r--r-- 1 root root 8 Nov 21 20:11 jerry
>>
>> The directory has:
>> drwxrwxrwx 2 root root 12288 Nov 21 20:11 tftpboot
>>
>
> How do you start the tftp service/server? If not mistaken, by default it
> expects the tftpboot directory in /var/lib (/var/lib/tftpboot) when you
> start the server/service the -s option tells it where to find it's root
>
>
>
>
>
>> Seems like that should be readble by all?
>>
>> Thanks
>> Jerry
>>
>
> I was under the impression that most implementations of tftp are very
> picky about the permissions and I would think they would NOT share any
> files owned by root.
>
> For example see if there's a tftp group already created and maybe chown
> the file (and maybe its directory) to tftp:tftp ?
>
> Does the man page for your version of tftpd say anything about the default
> permissions?
>
> Also I suggested you try using a client to put a file in the server's
> directory. What permissions does it give that file? I would think it might
> be the same permissions needed for reading a file.
>
> If you can't tell I'm stabbing in the dark but suggesting how I would go
> about it. I ALWAYS start with the man page. The information might be
> inscrutable, but there's usually some nugget of information that gets me
> closer to understanding.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
hi All,
I am starting the tftpd by xinetd.
more /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer
\
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
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
}
I tried to "put" a file - and same thing happens that I get a timeout...
(good thought).
I also tried to change the permsissions to be non-root - no difference.
Still Timeout.
I looked at the man page for tftpd. nothing there about permissions and not
thing there other than option -n and -s .
Thoughts?
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220129/ca33455d/attachment.html>
More information about the ubuntu-users
mailing list