|There's more than one way to do things|
filehandles and setuidby c (Hermit)
|on Apr 10, 2002 at 04:40 UTC ( #157954=perlquestion: print w/replies, xml )||Need Help??|
c has asked for the wisdom of the Perl Monks concerning the following question:
i am working on a script that will run setuid. i know the security lectures, but unfortunately, this one touches /etc/passwd so i am just trying to use taint checks as oft as possible and watch my back with any holes i can foresee.
in the process of the script however, i am writing the users being touched to a flat file. when running the script as setuid, i get an error complaining that opening a file via:
is not allowed or doesnt pass checks. sorry, but i cant at the moment recall the error and dont have the ability to duplicate it at the moment.
does this sound familiar? is there a way to safely perform such a task in a setuid file?
Back to Seekers of Perl Wisdom