modified: install_shell/audit_patch.sh
new file: install_shell/inetd.conf modified: install_shell/other.sh modified: install_shell/set_close_ipv6.sh modified: install_shell/set_fonts.sh Signed-off-by: Qin, Bo <bqin@linx-info.com>
This commit is contained in:
@@ -29,5 +29,3 @@ cp auditd.conf /etc/audit
|
||||
cp audit.rules /etc/audit/audit.rules.${USER_NAME}
|
||||
#sed -i "s#fujian#${UNIT_NAME}#g" /etc/audit/audit.rules.${USER_NAME}
|
||||
sed -i "s#/home/d5000/fujian#${USER_HOME}#g" /etc/audit/audit.rules.${USER_NAME}
|
||||
# restart deamon
|
||||
/etc/init.d/auditd restart
|
||||
|
||||
23
install_shell/inetd.conf
Normal file
23
install_shell/inetd.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# /etc/inetd.conf: inetd(8) configuration
|
||||
#
|
||||
# Do 'killall -HUP inetd' to make inetd re-read this file.
|
||||
#
|
||||
|
||||
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
|
||||
|
||||
#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
|
||||
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
|
||||
# nntp stream tcp nowait root /usr/sbin/tcpd in.nntpd
|
||||
#smtp stream tcp nowait root /usr/sbin/tcpd sendmail -v
|
||||
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
|
||||
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
|
||||
# exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
|
||||
# talk dgram udp wait root /usr/sbin/tcpd in.talkd
|
||||
# ntalk dgram udp wait root /usr/sbin/tcpd in.talkd
|
||||
# pop2 stream tcp nowait root /usr/sbin/tcpd in.pop2d
|
||||
# pop3 stream tcp nowait root /usr/sbin/tcpd in.pop3d
|
||||
# imap stream tcp nowait root /usr/sbin/tcpd in.imapd
|
||||
# auth stream tcp nowait nobody /usr/sbin/in.identd in.identd
|
||||
|
||||
# End of file
|
||||
@@ -53,7 +53,12 @@ chmod 755 /usr/sbin/linx-watch-top.sh
|
||||
if [ -f /var/spool/cron/crontabs/root ];then
|
||||
rm /var/spool/cron/crontabs/root
|
||||
fi
|
||||
#恢复被netkit-base包覆盖的/etc/inetd.conf文件
|
||||
cp inetd.conf /etc
|
||||
chown root.root /etc/inetd.conf
|
||||
chmod 644 /etc/inetd.conf
|
||||
|
||||
touch /var/log/kernel
|
||||
chown audadmin.audadmin /var/log/kernel*
|
||||
chmod 644 /var/log/kernel*
|
||||
chown audadmin.audadmin /var/log/messages*
|
||||
@@ -62,8 +67,6 @@ chown audadmin.audadmin /var/log/auth*
|
||||
chmod 644 /var/log/auth*
|
||||
chown audadmin.audadmin /var/log/errors*
|
||||
chmod 644 /var/log/errors*
|
||||
chown audadmin.audadmin /var/log/old/*
|
||||
chmod -R 755 /var/log/old/
|
||||
chown -R audadmin.audadmin /etc/cron/daily/
|
||||
chown -R audadmin.audadmin /etc/cron/weekly/
|
||||
chown audadmin.audadmin /etc/logrotate.conf
|
||||
|
||||
@@ -12,16 +12,5 @@ if [ $UID -ne $ROOT_UID ];then
|
||||
exit $E_ROOT
|
||||
fi
|
||||
LOCAL_FILE=/etc/rc.d/rc.local
|
||||
IPV6_IP=""
|
||||
IPV6_IP=`ifconfig bond0|grep inet6|awk '{print $3}'`
|
||||
IPV6_LO=`ifconfig lo|grep inet6|awk '{print $3}'`
|
||||
if [ -n "${IPV6_IP}" ];then
|
||||
for i in ${IPV6_IP}
|
||||
do
|
||||
echo $i
|
||||
ifconfig bond0 inet6 del $i
|
||||
done
|
||||
ifconfig lo inet6 del ${IPV6_LO}
|
||||
fi
|
||||
sed -i.bak_$DATE '/disable_ipv6/d' ${LOCAL_FILE}
|
||||
echo "echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6">> ${LOCAL_FILE}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
cp -vfr RockyFonts/* /usr/share/fonts/truetype/arphic/
|
||||
cp -vfr HYFonts/* /usr/share/fonts/truetype/
|
||||
cp -vf Java_fonts/* /usr/lib64/jdk1.5.0_16/jre/lib/
|
||||
cp -vf Java_fonts/* /usr/lib64/java/jre/lib/
|
||||
cd /usr/share/fonts/truetype/arphic/
|
||||
if [ -f bkai00mp.ttf ];then
|
||||
rm -rf bkai00mp.ttf
|
||||
|
||||
Reference in New Issue
Block a user