/usr/lib/wims/bin/setchroot is in wims 1:4.08~dfsg1-1.
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 | #! /bin/sh
#
# Fixes the uid of ch..root.
# Useless if you are not using the wims-chroot distribution.
# Must be run as root.
cd `dirname $0`/..
if [ ! -d chroot ]; then
echo $0: you are not using the *no longer maintained* 'wims-chroot'
echo distribution. Running 'setchroot' in your case is unnecessary and a
echo potential security risk. Aborting the 'setchroot' script.
exit
fi
if [ ! "$(id -ru )" = 0 ]; then
echo
echo $0: Please run this script as root!
echo
exit
fi
chown root:root public_html/bin/ch..root
chmod 6755 public_html/bin/ch..root
|