You should convert the system line to a call to File::Path::mkpath - don't call the shell while running a suid script - but before calling it, set the real to the effective user id, then don't forget to restore it afterwards:
my $original = $<; $> = $); mkpath ........... $> = $original;
This does what you want. The chmod +s ... that you did only makes this possible - doesn't make it happen.
In reply to Re: permisson prob in suid script
by pbeckingham
in thread permisson prob in suid script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |