chmod 700 禁用运算服务器的一些功能

请根据实际情况酌情使用!

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
#Server safe by Root
#Create by Fasteda.cn
#2022,03,12
chmod 700 /bin/ping
chmod 700 /bin/traceroute
chmod 700 /bin/netstat
chmod 700 /bin/mail
chmod 700 /bin/mailx
chmod 700 /bin/mount
chmod 700 /sbin/service
chmod 700 /sbin/ifconfig
chmod 700 /sbin/arp
chmod 700 /sbin/arping
chmod 700 /sbin/ip
chmod 700 /sbin/lvm
chmod 700 /sbin/runuser
chmod 700 /sbin/route
chmod 700 /usr/sbin/iotop
chmod 700 /usr/sbin/lsof
chmod 700 /usr/sbin/tcpdump
chmod 700 /usr/sbin/sendmail
chmod 700 /usr/sbin/sendmail.postfix
chmod 700 /usr/bin/sar
chmod 700 /usr/bin/ssh
chmod 700 /usr/bin/sudo
chmod 700 /usr/bin/last
chmod 700 /usr/bin/net
chmod 700 /usr/bin/lastlog
chmod 700 /usr/bin/xrdb
chmod 700 /usr/bin/akregator
chmod 700 /usr/bin/kget
chmod 700 /usr/bin/curl
chmod 700 /usr/bin/mail
chmod 700 /usr/bin/mailx
chmod 700 /usr/bin/wget
chmod 700 /usr/bin/rz
chmod 700 /usr/bin/sz
chmod 700 /usr/bin/ftp
chmod 700 /usr/bin/sftp
chmod 700 /usr/bin/scp
chmod 700 /usr/bin/traceroute
chmod 700 /usr/bin/kmail
chmod 700 /usr/bin/knode
chmod 700 /usr/bin/konqueror
chmod 700 /usr/bin/kopete
chmod 700 /usr/bin/ppp
chmod 700 /usr/bin/kppp
chmod 700 /usr/bin/krdc
chmod 700 /usr/bin/krfb
chmod 700 /usr/bin/remote-viewer
chmod 700 /usr/bin/tn5250
chmod 700 /usr/bin/k3b
chmod 700 /usr/bin/kmid
chmod 700 /usr/bin/x3270
chmod 700 /usr/bin/virt-manager
chmod 700 /usr/bin/virt-install
chmod 700 /usr/bin/virt-viewer

本文整理于网络

课程中心

Qianj.51CTO