From owner-freebsd-questions Tue Feb 4 17:40:38 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE58F37B401 for ; Tue, 4 Feb 2003 17:40:36 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id C7D7A43F93 for ; Tue, 4 Feb 2003 17:40:30 -0800 (PST) (envelope-from mwm-dated-1044841222.4fdd1e@mired.org) Received: (qmail 80609 invoked from network); 5 Feb 2003 01:40:22 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 5 Feb 2003 01:40:22 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15936.27525.948146.394261@guru.mired.org> Date: Tue, 4 Feb 2003 19:40:21 -0600 To: Paul Hoffman Cc: freebsd-questions@freebsd.org Subject: Re: Safe to change the position of "local" in the path? In-Reply-To: References: X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.68 (Shut Out) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In , Paul Hoffman typed: > Is it safe to change the default path to: > > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/X11R6/bin:/home/you/bin That depends on who you let write on /usr/local. If it's the same set of people as those who can write in /usr or /, then there's no change in security. If you haev /usr/local/bin as a place where local users can dump things they want to share, then it's a bad idea. > Is there a generic way to make things in /usr/local/bin take > precedence over things in /usr/bin? You set your PATH so that /usr/local/bin precedes /usr/bin. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message