Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

./



On Mon, Nov 10, 2003 at 06:40:07PM -0500, David Kramer wrote:
> On Monday 10 November 2003 6:15 pm, eric wrote:
> > hi.  both answers i got were great, thanks.  i learned about '.' and
> > cleared up some confusion i had about PATH.  thanks.
> 
> You got some good answers, but I would like to give you one more tip based on 
> what I *think* you're doing.
> 
> Usually . ( the current directory) is in the $PATH for regular users, however 
> it is almost never in the $PATH for root, for the safety reasons already 
> mentioned.   Since . is not in your path, I will assume you are logged in as 
> root.

Let's add another safety tip: don't add . to $PATH for normal users, but
do add ~/bin, and use the /etc/rc.skel or equivalent to create ~/bin for
all new users. When people want to add special commands, putting them in
their local bin is The Right Thing To Do. If they want commands that
other people can generally browse and use, asking a sysadmin to vet it
and put it in /usr/local/bin or whereever system policy dictates is the
Right Thing.

-dsr-

-- 
Network engineer / pre-sales engineer available in the Boston area.
http://tao.merseine.nu/~dsr




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org