-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathstep02_xinetd.sh
More file actions
executable file
·43 lines (43 loc) · 946 Bytes
/
step02_xinetd.sh
File metadata and controls
executable file
·43 lines (43 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
for SERVICE in \
amanda \
chargen \
chargen-udp \
cups \
cups-lpd \
daytime \
daytime-udp \
echo \
echo-udp \
eklogin \
ekrb5-telnet \
finger \
gssftp \
imap \
imaps \
ipop2 \
ipop3 \
klogin \
krb5-telnet \
kshell \
ktalk \
ntalk \
rexec \
rlogin \
rsh \
rsync \
talk \
tcpmux-server \
telnet \
tftp \
time-dgram \
time-stream \
uucp;
do
if [ -e /etc/xinetd.d/$SERVICE ]; then
echo "Disabling SERVICE($SERVICE) - `ls -la /etc/xinetd.d/$SERVICE`."
/sbin/chkconfig ${SERVICE} off
else
echo "OK. SERVICE doesn't exist on this system ($SERVICE)."
fi
done