atftpd configures for wrong inetd daemon

Bug #180111 reported by copsewood
4
Affects Status Importance Assigned to Milestone
atftp (Ubuntu)
In Progress
Undecided
Adam Lebsack

Bug Description

Binary package hint: atftp

Installing this package using aptitude the following line was added to /etc/inetd.conf:

tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /tftpboot

But my system has xinetd installed, not inetd. I patched this successfully for my application with the following minimal configuration file: /etc/xinetd.d/tftp

# default: on
# description: tftp service on port 69
service tftp
{
    disable = no
    port = 69
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    type = unlisted
}

Adam Lebsack (alebsack)
Changed in atftp:
assignee: nobody → alebsack
status: New → In Progress
Revision history for this message
Adam Lebsack (alebsack) wrote :

I don't see a default pattern for handling xinetd services. I would think the update-inetd script would properly make an entry either in /etc/xinetd.conf for /etc/xinetd.d/.

I would be willing to try taking on that task, which would be a help for all inetd-dependent packages. Any input here?

Revision history for this message
copsewood (rich-copsewood) wrote : Re: [Bug 180111] Re: atftpd configures for wrong inetd daemon

On Thu, Jan 03, 2008 at 05:04:27PM -0000, Adam Lebsack wrote:
> I don't see a default pattern for handling xinetd services. I would
> think the update-inetd script would properly make an entry either in
> /etc/xinetd.conf for /etc/xinetd.d/.
>
> I would be willing to try taking on that task, which would be a help for
> all inetd-dependent packages. Any input here?

I think with xinetd it is generally better to have seperate configuration file for each
service in the include ( /etc/xinetd.d ) directory, as this keeps the
configuration more modular.

An interesting question before you start is whether this deb package needs a custom
install script to do this job or uses one shared between a number of
server packages all of which should update either inetd.conf or /etc/xinetd.d/

Richard Kay.

Revision history for this message
Adam Lebsack (alebsack) wrote :

Looking at other packages, such as pure-ftpd, I've determined that the default in ubuntu is to use openbsd-inetd. That is managed by the update-inetd script (from the package of the same name) -- basically supply the service arguments and that script edits /etc/inetd.conf for you.

I'm wondering if that script should be modified to properly make entries under /etc/xinetd.d if xinetd is installed rather than inetd. This would fix (or break) all other packages that use one of the inetd options.

Any sponsors want to chime in?

Revision history for this message
copsewood (rich-copsewood) wrote :

On Thu, Jan 03, 2008 at 07:33:22PM -0000, Adam Lebsack wrote:
> Looking at other packages, such as pure-ftpd, I've determined that the
> default in ubuntu is to use openbsd-inetd. That is managed by the
> update-inetd script (from the package of the same name) -- basically
> supply the service arguments and that script edits /etc/inetd.conf for
> you.
>
> I'm wondering if that script should be modified to properly make entries
> under /etc/xinetd.d if xinetd is installed rather than inetd. This
> would fix (or break) all other packages that use one of the inetd
> options.
>
> Any sponsors want to chime in?

Digging around suggests some work has already been done on automating
conversion from inetd.conf to xinetd.conf format. I think it likely that
the scripts mentioned in this article would be applicable :

http://archiv.debianhowto.de/en/xinetd/c_xinetd.html

Richard.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.