Hi,
I finally got root access and was able to try running this program as different users, this allowed me to discover that the problem wasn't with the suid, it lay in the fact that i needed to set the shell to '/usr/bin/tcsh' for it to work.
However after taking your advice and writing the wrapper, i received the following error:
# ./test
Content-Type: text/html; charset=ISO-8859-1
Insecure $ENV{PATH} while running setuid at ./test.pl line 12.
Line 12 of test.pl is:
open(LIST,"/usr/local/mailman/bin/list_members $listname|") || die "reason: $!";
Is this because i am passing an argument to the shell, can someone please point me in the right direction security wise on how i could fix this.
Thanks in advance
- Neil