Penguin
Blame: update-inetd(8)
EditPageHistoryDiffInfoLikePages
Annotated edit history of update-inetd(8) version 3, including all changes. View license author blame.
Rev Author # Line
1 perry 1 update-inetd
2 !!!update-inetd
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 EXAMPLES
8 FILES
9 SEE ALSO
10 AUTHOR
11 ----
12 !!NAME
13
14
15 update-inetd - create, remove, enable or disable entry in /etc/inetd.conf
16 !!SYNOPSIS
17
18
19 __update-inetd__ [[--file FILENAME] [[--help] [[--version]
20 [[--verbose] [[--comment-chars CHARACTERS] [[--debug] [[--group
21 GROUPNAME] --add ENTRY
22
23
24 __update-inetd__ [[--file FILENAME] [[--help] [[--version]
25 [[--verbose] [[--debug] --remove ENTRY
26
27
28 __update-inetd__ [[--file FILENAME] [[--help] [[--version]
29 [[--verbose] [[--comment-chars CHARACTERS] [[--pattern PATTERN]
30 [[--multi] [[--debug] --enable SERVICE
31
32
33 __update-inetd__ [[--file FILENAME] [[--help] [[--version]
34 [[--verbose] [[--comment-chars CHARACTERS] [[--pattern PATTERN]
35 [[--multi] [[--debug] --disable SERVICE
36 !!DESCRIPTION
37
38
39 __update-inetd__ can be used to add, remove, enable or
40 disable entries in the ''/etc/inetd.conf'' file (you can
41 specify a different file by using the __--file__ option).
42 After the ''/etc/inetd.conf'' file has been changed,
43 __update-inetd__ will send a SIGHUP signal to the inetd
44 process to make sure that inetd will use the new
45 ''/etc/inetd.conf'' file. For Perl scripts you can also
2 perry 46 use the Perl module __!DebianNet.pm__ . See
3 perry 47 !DebianNet(3pm) for further information.
1 perry 48 __update-inetd__ can also be used to add entries that are
49 commented out by default. They will be treated like normal
50 entries. That also means that if you already have an entry
51 that is commented out you can't add an entry for the same
52 service without removing the old one first.
53
54
55 update-inetd treats entries that are commented out by a
56 single `#' character as entries that have been commented out
57 by a user. It won't change such entries.
58 !!OPTIONS
59
60
61 ''--version''
62
63
64 Print version information on standard output and exit
65 successfully.
66
67
68 ''--help''
69
70
71 Print a usage message on standard output and exit
72 successfully.
73
74
75 ''--verbose''
76
77
78 Explain what is being done.
79
80
81 ''--debug''
82
83
84 Enables debugging mode.
85
86
87 ''--file FILENAME''
88
89
90 Use FILENAME instead of ''/etc/inetd.conf''
91 .
92
93
94 ''--group GROUPNAME''
95
96
97 Specify that the new entry should be placed in group
98 GROUPNAME (e.g. ''MAIL
99
100
101 ''--comment-chars CHARACTERS''
102
103
104 update-inetd uses ''#
105
106
107 ''--pattern PATTERN''
108
109
110 This option can be used to select a service. You only need
111 this option if you have two (or more) services of the same
112 name.
113
114
115 ''--multi''
116
117
118 If you want to disable/remove more than one entry at a time
119 you should use this option. If you try to remove more than
120 one entry at a time without using this option the program
121 will show a warning and asks the user if he want to
122 continue.
123
124
125 ''--add ENTRY''
126
127
128 Add an entry to ''/etc/inetd.conf'' . A description of
129 the ENTRY format can be found in the inetd(8) or
130 inetd.conf(5) manual pages (or just look at the
131 /etc/services file). In order to prevent the shell from
132 changing your ENTRY definition you have to quote the ENTRY
133 using single or double quotes. You can use tabs (the tab
134 character or t) and spaces to separate the fields of the
135 ENTRY. To add the ENTRY to a specific section in the
136 /etc/inetd.conf file please use the __--group__ option in
137 addtion to the __--add__ option.
138
139
140 If you are trying to add an entry which already exists
141 update-inetd won't add the entry. For uncommented entries it
142 will do nothing and for entries that are commented out by
143 the comment-chars (see option __--comment-chars__ ) it
144 will enable the existing entry. If you want to completely
145 replace an entry just remove the entry with the
146 __--remove__ option first.
147
148
149 ''--remove ENTRY''
150
151
152 Remove an entry from ''/etc/inetd.conf'' . You can use a
153 regular expression to remove the entry.
154
155
156 ''--enable SERVICE''
157
158
159 Enable SERVICE (e.g. ''ftp/etc/inetd.conf''
160 . If you want to enable more than one SERVICE you can use a
161 comma separated list of services (no whitespace characters
162 allowed).
163
164
165 ''--disable SERVICE''
166
167
168 Disable SERVICE (e.g. ''ftp/etc/inetd.conf''
169 . If you want to disable more than one SERVICE you can use a
170 comma separated list of services (no whitespace characters
171 allowed).
172
173
174 In order to prevent the shell from changing your ENTRY
175 definition you have to quote the ENTRY using single or
176 double quotes. You can use tabs (the tab character or t) and
177 spaces to separate the fields of the ENTRY. If you want to
178 enable/disable more than one SERVICE you can use a comma
179 separated list of services (no whitespace characters
180 allowed).
181 !!EXAMPLES
182
183
184 You've installed ssh (secure encrypting remote shell) and
185 wish to disable its unencrypted cousins:
186
187
188 update-inetd --comment-chars '#' --disable
189 login,shell,exec,telnet
190
191
192 Using a single '#' character as a comment-char prevents
193 update-inetd to reenable the services on package
194 upgrades.
195
196
197 You think the clock on your computer is often inaccurate and
198 wish to make sure other computers cannot read
199 it:
200
201
202 update-inetd --disable time,daytime
203
204
205 You get the clock fixed:
206
207
208 update-inetd --enable time,daytime
209
210
211 You hear a rumor that inetd is easily crashed via a SYN
212 attack against the time and daytime services, you want to
213 turn off only their TCP versions, while leaving the
214 analogous UDP services enabled:
215
216
217 update-inetd --pattern tcp --disable
218 time,daytime
219
220
221 You just finished writing a POP3 server and want to install
222 the /etc/inetd.conf entry from the makefile:
223
224
225 update-inetd --group MAIL --add \
226 'pop-3ttstreamttcptnowaittroott/usr/sbin/tcpdt/usr/sbin/in.pop3d'
227 !!FILES
228
229
230 /etc/inetd.conf /var/run/inetd.pid
231 !!SEE ALSO
232
233
2 perry 234 !DebianNet(3pm)
1 perry 235 !!AUTHOR
236
237
238 Peter Tobias,
239 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.