update-inetd(8)
โจ update-inetd(8) โจ โ the dpkg suite's lil' inetd.conf glow-up tool ๐
okay so bestie, pull up a chair because this one is lowkey iconic ๐
๐ธ NAME ๐ธ
update-inetd โ create, remove, enable or disable entry /etc/inetd.conf
๐ฆ SYNOPSIS ๐ฆ
update-inetd [option...] command argument
๐ DESCRIPTION ๐
so update-inetd is that girl fr โ she can add, remove, enable or disable entries in the /etc/inetd.conf file (and yes, you can point her at a different file if you want, just use the --file option ๐ซถ). once /etc/inetd.conf has been changed, she sends a SIGHUP signal to the inetd process so that inetd will actually pick up the new /etc/inetd.conf file. like, she makes sure it lands. no cap.
if you're doing Perl scripts, there's also the Perl module DebianNet for you โ peep DebianNet(3pm) for further information โจ
update-inetd can also add entries that are commented out by default. those get treated like normal entries, which โ bestie, hear me โ means that if you already have an entry that's commented out, you cannot add an entry for the same service without removing the old one first. it's giving "one at a time, queen" ๐
in accordance with the Debian Policy, update-inetd treats entries that are prefixed with a single '#' character as commented out by a user. what that means in practice: for a user to disable a service using update-inetd, and for the service to stay disabled after upgrades, the user must run update-inetd with --comment-chars '#' (see the relevant option below ๐). conversely, package maintainer scripts should not override the default comment chars โ and when they do, they must not use '#'.
also note:--enableand--removewill not be acted upon for service entries that are commented out using anything but the value specified with--comment-chars(or the default value if none is specified). read that again, it matters ๐
๐ COMMANDS ๐
--addentry-line โ add an entry to/etc/inetd.conf. a description of the entry-line format lives in theinetd(8)orinetd.conf(5)manual pages (or honestly, just look at/etc/inetd.conf). to stop the shell from messing with your entry-line definition, you have to quote the entry-line using single or double quotes. you can use tabs (a tab character or\t) and spaces to separate the fields of the entry-line. if you want to drop the entry-line into a specific section of the/etc/inetd.conffile, please use the--groupoption ๐- if you're trying to add an entry that already exists,
update-inetdwill not add the entry. for uncommented entries it will do nothing, and for entries that are commented out by the comment-chars (see option--comment-chars) it will enable the existing entry. if you want to completely replace an entry, just remove the entry with the--removecommand first. periodt.
- if you're trying to add an entry that already exists,
--removeentry-regex โ remove an entry-line matching entry-regex (e.g."telnet") from/etc/inetd.conf. the entry-regex will be anchored at the beginning of the entry line. ๐--enableservice[,...] โ enable service (e.g."ftp") in/etc/inetd.conf. if you want to enable more than one service you can use a comma-separated list of services (no whitespace characters allowed, bestie, none ๐ซ).--disableservice[,...] โ disable service (e.g."ftp") in/etc/inetd.conf. if you want to disable more than one service you can use a comma-separated list of services (no whitespace characters allowed ๐ซ).
๐ OPTIONS ๐
--groupgroupname โ specify that the new entry should be placed in group groupname (e.g."MAIL"). if the group does not exist, the entry will be placed at the end of the file. the default group is"OTHER".- this option is only relevant with the
--addcommand ๐
- this option is only relevant with the
--patternpattern โ this option can be used to select a service. you only need this option if you have two (or more) services of the same name.- this option is not relevant with the
--addcommand.
- this option is not relevant with the
--comment-charscharacters โupdate-inetduses"#<off># "as the default comment characters. you can use this option to specify different comment characters. this is only necessary if you have to deal with two (or more) services of the same name. if you do use this option, it is your responsibility to eventually remove the commented out entry. (yes, yours. the ball is in your court ๐)--multiโ if you want to disable/remove more than one entry at a time you should use this option. if you try to remove more than one entry at a time without using this option, the program will show a warning and prompt the user for an explicit confirmation. it's giving "are you sure sure" ๐ญ--filefilename โ use filename instead of/etc/inetd.conf.--verboseโ explain what is being done. (she'll narrate. we love a narrator ๐)--debugโ enables debugging mode. ๐--helpโ print a usage message on standard output and exit successfully.--versionโ print version information on standard output and exit successfully.
๐ EXAMPLES ๐
you have installed ssh (secure encrypting remote shell) and wish to disable its unencrypted cousins:
update-inetd --comment-chars '#' --disable login,shell,exec,telnet
using a single '#' character as a comment-char prevents update-inetd from re-enabling the services on package upgrades. (slay, they stay gone ๐
)
you think the clock on your computer is often inaccurate and wish to make sure other computers cannot read it:
update-inetd --comment-chars '#' --disable time,daytime
you get the clock fixed:
update-inetd --enable time,daytime
you hear a rumor that inetd is easily crashed via a SYN attack against the time and daytime services, and you want to turn off only their TCP versions while leaving the analogous UDP services enabled:
update-inetd --comment-chars '#' --pattern tcp --disable time,daytime
you just finished writing a POP3 server and want to install the /etc/inetd.conf entry from the Makefile:
update-inetd --group MAIL --add \
'pop-3\t\tstream\ttcp\tnowait\troot\t/usr/sbin/tcpd\t/usr/sbin/in.pop3d'
๐ FILES ๐
/etc/inetd.conf/run/inetd.pid
๐ง SEE ALSO ๐ง
okay that's the whole page bestie, you ate ๐ and just so you know who to thank โ this is update-inetd version 4.54build1, dated 2026-02-02, part of the dpkg suite. go forth and configure your services, main character ๐โจ๐ธ
๐ฆ where this page comes from
- ubuntu resolute: update-inetd 4.54build1
- ubuntu stonking: update-inetd 4.54build1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms