/usr/lib/wims/bin/wrapuid is in wims 4.01e-7.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #! /bin/sh
#
# This small script is used to fix the uid of wrap..exec.
# It must be run as root.
#
if [ ! "$(id -ru )" = 0 ]; then
echo
echo Please run this script as root!
echo
echo
exit
fi
cd `dirname $0`/..
distro=default
[ -f /etc/debian_version ] && distro=debian
case $distro in
debian) usergroup=nobody:nogroup
;;
*) usergroup=nobody:nobody
;;
esac
for f in public_html/bin/wrap..exec bin/wimsd
do
if [ -f $f ]; then
chown $usergroup $f
chmod a+s $f
fi
done
uname=`uname | tr '[A-Z]' '[a-z]'`
case "$uname" in
darwin) chown root:Admin public_html/bin/ch..root;;
*) chown root:root public_html/bin/ch..root;;
esac
chmod a+s public_html/bin/ch..root
rm -f log/unsecure
#if [ -d chroot/dev ] && [ ! -e chroot/dev/zero ]; then
# cp -fR /dev/zero chroot/dev 2>/dev/null
# cp -fR /dev/null chroot/dev 2>/dev/null
#fi
|