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:
open(FH, "/etc/pop3/users.$domain") or die "Cant open file for reading : $!\n";
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?
humbly -c
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: filehandles and setuid
by Fletch (Bishop) on Apr 10, 2002 at 04:50 UTC | |
Re: filehandles and setuid
by mce (Curate) on Apr 10, 2002 at 10:07 UTC | |
Re: filehandles and setuid
by particle (Vicar) on Apr 10, 2002 at 11:07 UTC | |
by Fletch (Bishop) on Apr 10, 2002 at 14:10 UTC | |
by RMGir (Prior) on Apr 10, 2002 at 13:06 UTC | |
by particle (Vicar) on Apr 10, 2002 at 14:40 UTC |
Back to
Seekers of Perl Wisdom