存档

文章标签 ‘安全’

Linux 下的 Zen Cart 安全脚本

2010年2月24日 无风的飘逸 5 条评论

#!/bin/bash
echo "install some setting for zen cart because of some secure reason..."
for site in /data0/htdocs/*;do
  if [ -d $site ]; then
    if [ -f $site/includes/application_top.php ]; then
      echo $site" is zen cart folder"
      chmod 444 -R $site/docs
      chmod 444 -R $site/extras
      chmod 444 $site/install.txt
      rm -rf $site/download
      rm -rf $site/media
      rm -rf $site/pub
抱歉,只有对本文发表过评论才能阅读隐藏内容

Share