in reply to permisson prob in suid script
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: permisson prob in suid script
by Anonymous Monk on Jun 23, 2004 at 16:33 UTC | |
by pbeckingham (Parson) on Jun 23, 2004 at 17:21 UTC |