/usr/lib/wims/bin/setwrapexec is in wims 1:4.15b~dfsg1-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #! /bin/sh
#
# Fixes the uid of wrap..exec
# Must be run as root.
if [ ! "$(id -ru )" = 0 ]; then
echo
echo $0: Please run this script as root!
echo
exit 0
fi
cd `dirname $0`/..
file=public_html/bin/wrap..exec
group=`id -ng nobody`
case "$group" in
nobody|nogroup);;
*) group=;;
esac
if [ -z "$group" ]; then
echo $0: Your wims installation is currently unsecure. Please create a group
echo 'nobody' or 'nogroup' containing user 'nobody', then re-run this script.
echo Aborting
exit 1
fi
if [ -f $file ]; then
chown nobody:$group $file
chmod 6755 $file
fi
rm -f log/unsecure
|