+## we cannot do proper directory permissions checking if the current
+## working directory has unsatisfactory permissions:
+if "$MONKEYSPHERE_SYSSHAREDIR"/checkperms $(whoami) "$TEMPDIR"; then
+ echo "Permissions on temporary directory '$TEMPDIR' are OK for permissions checks."
+ TEMPDIR_PERMISSIONS_SAFE=yes
+else
+ cat <<EOF
+
+!!!WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING!!!
+ Permissions on testing directory '$TEMPDIR' are
+ too loose to do proper strict permissions checking. Some tests
+ will be disabled or ignored.
+
+ To avoid this warning (and to make sure that all tests are run
+ properly), please run these tests within a directory that meets
+ sshd's standards for "StrictModes yes" -- the directory (and every
+ one of its parents) should be owned only be the user running this
+ test or root, and should not be writable by group or other.
+!!!WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING!!!
+
+EOF
+
+ # FIXME: what else should we do with this knowledge to make sure
+ # that the appropriate tests are handled properly?
+ TEMPDIR_PERMISSIONS_SAFE=no
+
+ # this is a new option (as of 0.26) to disable filesystem
+ # permission checks.
+
+ # it should operate by analogy with StrictModes from sshd_config(5)
+ export MONKEYSPHERE_STRICT_MODES=false
+fi
+
+
+