RE: [users@httpd] Permissions problems starting tethereal from PHP in Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks. I think I have a workaround. I will run a CRON job every 5 mins that
checks for the existence of a file. The file will be called tethereal_on.txt
or tethereal_off.txt. PHP will create the file to turn tethereal on/off.
CRON will actually do it. Problem is the 5 min lag, but I don't want to CRON
too often either.

-----Original Message-----
From: Joshua Slive [mailto:jslive@xxxxxxxxx] 
Sent: Wednesday, November 30, 2005 9:37 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Permissions problems starting tethereal from PHP
in Apache

On 11/30/05, Leo Papadopoulos <leo@xxxxxxxxxxxxxx> wrote:
> Dear httpd users,
>
> I am trying to start tethereal from within a PHP script running on Apache.
> I am using the PHP system("tethereal", $return_val) command to do this.
>
> However I get an error something like "socket: Operation not permitted".
> Does anyone know what I can do?

The User/Group specified in httpd.conf doesn't have the rights to run
the program.

You can look into tools like sudo to grant more rights, but be careful
since it is easy to compromise the security of your server.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux