Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2003 19:40:21 -0600
From:      Mike Meyer <mwm-dated-1044841222.4fdd1e@mired.org>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Safe to change the position of "local" in the path?
Message-ID:  <15936.27525.948146.394261@guru.mired.org>
In-Reply-To: <p0521030dba661110f16b@[165.227.249.18]>
References:  <p0521030dba661110f16b@[165.227.249.18]>

next in thread | previous in thread | raw e-mail | index | archive | help
In <p0521030dba661110f16b@[165.227.249.18]>, Paul Hoffman <phoffman@proper.com> 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.

	<mike
-- 
Mike Meyer <mwm@mired.org>		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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15936.27525.948146.394261>