You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ryan Mooney <ry...@verge.net> on 1999/08/06 20:33:42 UTC

general/4829: a safe PATH ought to be set in httpsdctl

>Number:         4829
>Category:       general
>Synopsis:       a safe PATH ought to be set in httpsdctl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Aug  6 11:40:01 PDT 1999
>Last-Modified:
>Originator:     ryan@verge.net
>Organization:
apache
>Release:        1.3.X
>Environment:
all apache on unix installations (haven't looked at win32)
>Description:

The httpdctl script inherits the path from whomever ran it (usually root).  
Sometimes this is undesirable for various reasons and a minimalistic 
configuration should have an option to configure the PATH.  A common path
might be something like PATH=/bin:/usr/bin:/usr/local/bin, but I'm not
going to make any specific recommendations as I suspect that there are other
people with much stronger opinions there :)
>How-To-Repeat:

>Fix:
*** httpsdctl.old       Fri Aug  6 10:16:54 1999
--- httpsdctl   Fri Aug  6 10:16:44 1999
***************
*** 21,26 ****
--- 21,29 ----
  # |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
  # --------------------                              --------------------
  # 
+ #Safe PATH
+ PATH=/bin:/usr/bin:/usr/local/bin
+ #
  # the path to your PID file
  PIDFILE=/usr/local/apache/logs/httpsd.pid
  #
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]