ID:               42553
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mwm at godaddy dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         SNMP related
 Operating System: Redhat Enterprise Linux ES 4
 PHP Version:      5.2.4
 New Comment:

See bug #34165




Previous Comments:
------------------------------------------------------------------------

[2007-09-04 22:17:48] mwm at godaddy dot com

Description:
------------
net-snmp-libs-5.1.2-11.EL4.7
net-snmp-devel-5.1.2-11.EL4.7
net-snmp-utils-5.1.2-11.EL4.7
net-snmp-5.1.2-11.EL4.7

When 5.2.4 is compiled --with-snmp (also with and without
--enable-ucd-snmp-hack) permission is required to read
/var/net-snmp/snmpapp.conf.  This by default is owned by root with
permissions so that only root can read the files.


$ ls -la /var/net-snmp/ /var/net-snmp/snmpapp.conf
-rw-------  1 root root  675 Sep  4 12:47 /var/net-snmp/snmpapp.conf

ls: /var/net-snmp/: Permission denied

I'd rather not open up public permissions to the conf file or
directory, and I certainly do not want to run this under an apache
virtualhost as root. I running under Apache 2.2 as a CGI with operating
system Red Hat Enterprise Linux ES release 4 update 4.

The highest version of net-snmp provided by Redhat for RHEL4 is 5.1.

This appears in nature similar to Bug #32613, however that bug was
closed.
        

Reproduce code:
---------------
php -v as a non-root user, or a user that does not have permission to
read/write to the default net-snmp path.


$ php -v
PHP 5.2.4 (cli) (built: Sep  4 2007 12:46:28)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
No log handling enabled - turning on stderr logging
Cannot rename /var/net-snmp/snmpapp.conf to
/var/net-snmp/snmpapp.0.conf
Cannot unlink /var/net-snmp/snmpapp.conf
read_config_store open failure on /var/net-snmp/snmpapp.conf
read_config_store open failure on /var/net-snmp/snmpapp.conf
read_config_store open failure on /var/net-snmp/snmpapp.conf


Expected result:
----------------
I expected not to see a permission issue (read_config_store open
failure) in attempting to write to the persistent file.

Actual result:
--------------
Actual result is:
read_config_store open failure on /var/net-snmp/snmpapp.conf


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42553&edit=1

Reply via email to