UPDATE-INETD(1)
β¨ UPDATE-INETD π
(that's the update-inetd manual page, bestie)
okay so literally the whole vibe of this page is: create, remove, enable or disable an entry in /etc/inetd.conf. that's the name, that's the game. π
πΈ SYNOPSIS πΈ
update-inetd [option...] command argument
π¦ DESCRIPTION π¦
so like, update-inetd is your girl for adding, removing, enabling or disabling entries in the /etc/inetd.conf file β and if you wanna work on a different file, you can point her at one with the --file option. π
once the /etc/inetd.conf file has been changed, update-inetd will send a SIGHUP signal to the inetd process to make sure inetd actually uses the new /etc/inetd.conf file. no stale config energy allowed, periodt.
if you're doing Perl scripts, you can also use the Perl module DebianNet. go read DebianNet(3pm) for further information, iykyk. β¨
update-inetd can also be used to add entries that are commented out by default. those get treated like normal entries β which, real talk, also means that if you already have an entry that is commented out, you cannot add an entry for the same service without removing the old one first. sorry bestie, them's the rules. π
in accordance with the Debian Policy, update-inetd treats entries that are prefixed with a single '#' character as commented out by a user. what does that mean for you? it means that for a user to disable a service using update-inetd, and for the service to remain disabled after upgrades, the user must run update-inetd with --comment-chars '#' (peep the relevant option below π). conversely, package maintainer scripts should not override the default comment chars β and when they do, they must not use '#'. not up for debate, that's policy. π
also note that --enable and --remove will 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). so if you're out here commenting with some custom chaos characters, don't expect enable/remove to clock it. π
π COMMANDS π
--addentry-line β add an entry to/etc/inetd.conf. a description of the entry-line format can be found in theinetd(8)orinetd.conf(5)manual pages (or just look at/etc/inetd.conf, no shame, that's what it's there for). in order to prevent the shell from changing your entry-line definition you have to quote the entry-line using single or double quotes. you can use tabs (tab character or\t) and spaces to separate the fields of the entry-line. and if you wanna add the entry-line to a specific section in the/etc/inetd.conffile, please use the--groupoption. π«Ά
if you are trying to add an entry which already exists, update-inetd will 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 --remove command first. simple as that. β¨
--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, so no cute little spaces in there bestie). π--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 (again: 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 --add command.
--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. twin services, iconic but confusing. π―
this option is not relevant with the --add command.
--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, you. your problem now. π--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. safety first, queen. β οΈ--filefilename β use filename instead of/etc/inetd.conf. ποΈ--verboseβ explain what is being done. she'll narrate. main character energy. π€--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 to re-enable the services on package upgrades. no take-backs, periodt. π
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, 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/var/run/inetd.pid
π SEE ALSO π
and that's the whole page, bestie β brought to you by perl v5.32.0, dated 2020-12-24. slay, stay configured, and remember: quote your entry-lines. π«Άπβ¨
π¦ where this page comes from
- ubuntu jammy: update-inetd 4.51
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms