From owner-freebsd-bugs Thu Aug 1 11:50:20 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D58837B401 for ; Thu, 1 Aug 2002 11:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E02743E77 for ; Thu, 1 Aug 2002 11:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g71Io2JU029844 for ; Thu, 1 Aug 2002 11:50:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g71Io2f9029843; Thu, 1 Aug 2002 11:50:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C105B37B400 for ; Thu, 1 Aug 2002 11:42:49 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AC9443E42 for ; Thu, 1 Aug 2002 11:42:49 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g71IgnOT045875 for ; Thu, 1 Aug 2002 11:42:49 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g71Ignka045874; Thu, 1 Aug 2002 11:42:49 -0700 (PDT) Message-Id: <200208011842.g71Ignka045874@www.freebsd.org> Date: Thu, 1 Aug 2002 11:42:49 -0700 (PDT) From: Pat Lashley To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/41242: periodic scripts make unwarrented assumptions about PATH Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41242 >Category: misc >Synopsis: periodic scripts make unwarrented assumptions about PATH >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 01 11:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pat Lashley >Release: 4.6-STABLE >Organization: >Environment: FreeBSD orwell.phoenix.volant.org 4.6-STABLE FreeBSD 4.6-STABLE #11: Wed Jul 24 09:47:43 PDT 2002 broot@orwell.phoenix.volant.org:/usr/obj/usr/src/sys/ORWELL i386 >Description: The scripts in /etc/periodic/* invoke various system programs using just the program name without a path. Since periodic is normally run from cron, and /etc/crontab sets a short PATH, this is normally safe. But when run manually the PATH may contain other elements which could cause unexpected conflicts. (For example, daily/450.security re-invokes periodic. If /usr/X11/bin appears before /usr/sbin and OpenMotif is installed it will try to display the Periodic Table of Motif Widgets instead of executing the scripts in /etc/periodic/security.) >How-To-Repeat: Install OpenMotif from the port. Prepend /usr/X11R6/bin to your PATH. Run "periodic daily". Run "/usr/sbin/periodic daily". >Fix: Since the individual periodic scripts may also be run manually, the best fix is to add a full path to every program invocation in /usr/sbin/periodic and the scripts in /etc/periodic/* >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message