in reply to How to use setuid with modules?
set-UID is a feature of the Unix kernel when a program is exec()'d. Since Perl modules aren't exec()'d, the set-UID bit on a Perl module file is pretty useless.
You could have your module open a pipe to a set-UID Perl script if you have your kernel and/or Perl configured to support that (an increasingly uncommon situation).
You could also have a privileged daemon that drains data from a named pipe and writes those to the log file and have the module write to the named pipe. Or you could have a privileged TCP/IP server (probably an HTTP server) that does something similar.
- tye (but my friends call me "Tye")
|
|---|