From: yolcu at sst dot gen dot tr Operating system: Linux CentOs 4 PHP version: 5.2.0 PHP Bug Type: SNMP related Bug description: With or without snmp parameter, there is a shared access problem on conf files.
Description: ------------ Configuring tith or without snmp parameter, there is a shared access problem on conf files related to snmp when cron jobs are used for more than 1 user in the same time period. When run, snmp's conf files' owner becomes the cron job owner. At that time, if another request comes from another user, it'll give errors because that user is not the owner of that conf file! When i checked from console, i saw that the owner of the conf file continuously changes according to the cron job owner. if you disable and don't want to use snmp parameter nothing changes. (By the way, there are NO compile errors.) PHP version: 5.2.0 Net-Snmp version:5.4 ( Before making all of my compiles, I have cleaned garbages: make distclean, make clean ) Reproduce code: --------------- Compile the latest php stable released version 5.2.0 Assign cronjobs for more than 1 user in your system those call php scripts. If you configure cron jobs from only 1 user, you won't be able to reproduce the problem. Expected result: ---------------- Just normal cron output, or nothing. But not error lines. Actual result: -------------- If you have logging disabled, your admin mail account will receive mails like this: "No log handling enabled - turning on stderr logging Cannot rename /var/net-snmp/snmpapp.conf to /var/net-snmp/snmpapp.1.conf Cannot unlink /var/net-snmp/snmpapp.conf " OR " No log handling enabled - turning on stderr logging 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 " -- Edit bug report at http://bugs.php.net/?id=40262&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40262&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40262&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40262&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40262&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40262&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40262&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40262&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40262&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40262&r=support Expected behavior: http://bugs.php.net/fix.php?id=40262&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40262&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40262&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40262&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40262&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40262&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40262&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40262&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40262&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40262&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40262&r=mysqlcfg
