Date: Thu, 1 Aug 2002 11:42:49 -0700 (PDT) From: Pat Lashley <patl+freebsd@volant.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/41242: periodic scripts make unwarrented assumptions about PATH Message-ID: <200208011842.g71Ignka045874@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208011842.g71Ignka045874>