Ok, I've got a simple little script that I wrote which takes some text, strips out superfluous characters then appends the cleaned up text to file. Like I said, simple. I've been using it without problem for months, up until yesterday that is, when I made the mistake of running it as root. Since then, if I try to run it as under my normal user account, it reaches
open my $filehandle, ">> $fname" or die $!;
print $filehandle $data;
close $filehandle;
and quits with 'Permission denied' and diagnostics reporting 'The setuid emulator in suidperl decided you were up to no good'.
I've done all the obvious stuff with ownership and permissions. Even tried shredding the output file and replacing it with a brand new one but the problem remains. Can somebody give a me a clue? I really don't want to have to fire up the root account every time I run this thing.
For info, I'm using Fedora fc8 with perl 5.8.8 (ie. the one that comes bundled with Fedora).
Thanks in advance,
Tom.