D
Dave Ardrey
I am trying to write a program that will write to a log file every
time it is called. However, I don't want everyone to have write
access to the log file, so I made the log file have the same owner as
the script and set the permissions on the script to 6755 (setting the
uid and gid bits).
The problem is that when the permissions are set and I'm running as a
different user, it doesn't like doing system calls(gives me an error).
So I set the effective uid and gid to be the real uid and gid until I
need them to be different but now when I try and do a system call I
get this error:
Insecure $ENV{PATH} while running with -T switch at /dev/fd/3 line
102.
Any ideas what can be done about this? I know it's probably just as
much of a UNIX question than a perl one. I hope that's ok.
Thanks for your help.
time it is called. However, I don't want everyone to have write
access to the log file, so I made the log file have the same owner as
the script and set the permissions on the script to 6755 (setting the
uid and gid bits).
The problem is that when the permissions are set and I'm running as a
different user, it doesn't like doing system calls(gives me an error).
So I set the effective uid and gid to be the real uid and gid until I
need them to be different but now when I try and do a system call I
get this error:
Insecure $ENV{PATH} while running with -T switch at /dev/fd/3 line
102.
Any ideas what can be done about this? I know it's probably just as
much of a UNIX question than a perl one. I hope that's ok.
Thanks for your help.