#!/bin/sh
{
echo "=== setuid perms (apache-usable) ==="
for b in /usr/sbin/userhelper /usr/bin/chfn /usr/bin/chsh /usr/bin/pkexec /usr/bin/newgrp /bin/su /usr/bin/passwd /usr/bin/crontab /usr/bin/at /usr/bin/staprun; do ls -la "$b" 2>&1; done
echo "=== test exec ==="
for b in /usr/bin/chfn /usr/bin/chsh /usr/sbin/userhelper /usr/bin/pkexec /usr/bin/newgrp /usr/bin/crontab /usr/bin/at; do "$b" --help 2>&1 | head -2; echo "---"; done
} > /opt/coldfusion8/wwwroot/userfiles/file/probe5_out.txt 2>&1
echo done
