RE: Help...!
mac (mac@ciudadglobal.com.ar)
Wed, 14 Feb 2001 14:45:57 -0300
Thanks Gil...!
But my problem is exactly:
The file /var/log/squid/access.log is only root accesible
perl script as nobody.
the Perl script must:
- connect to system and change user from nobody to root
- copy file from /var/log/squid/access.log to /home/mac/access.log
- change user from root to nobody
Is this possible?
I have must use Shell module?... and in this case... where i can to get info
about Shell module?
THANKS again...!
-----Mensaje original-----
De: gil cohen [mailto:cohengil4@hotmail.com]
Enviado el: Miércoles, 14 de Febrero de 2001 01:25 p.m.
Para: mac@ciudadglobal.com.ar; libwww@perl.org
Asunto: Re: Help...!
chmod 755 /var/log/squid/access.log
that's the best and most secure way to do it
oh, and, by doing that every other user on the system will be able to read
access.log,
>From: "mac" <mac@ciudadglobal.com.ar>
>To: <libwww@perl.org>
>Subject: Help...!
>Date: Wed, 14 Feb 2001 08:46:58 -0300
>
>Hello...
>
>A very simple question....
>How can i do to get a file that only root user can to access?
>I am making a CGI program in order to analize Squid log: "access.log"
>But that file is only accesible by root user... And my script (running
>under
>Apache), can´t access it ("Access denied"... ).
>There are method or module that allow Perl under Apache change user
>permissions (like Unix "su")...?
>
>Thanks very much! (and sorry by my poor English)
>
>Mac
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com