Re: help adding start and shutdown script
- From: "Vic" <vic@xxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 09:41:13 +0000 (UTC)
"Matth?us Banach" <accounts@xxxxxxxxxxx> wrote in message
news:e08b1r$8mv$1@xxxxxxxxxxxxxxxxxx
If you want Linux to look into the current directory for executables,
just set the PATH variable. In bash you have to edit ~/.bash_profile.
If you add
PATH=$PATH:. # sets the PATH variable to the value it had
# before PLUS ".", the current directory
export PATH # exports the variable
Don't do this...
Part of your security comes from the fact that all commands come from
known places in the filesystem, regardless of where you might currently
be sat. So if you were to pick up something nasty, it could not be
executed accidentally unless it manages to get into a directory on
$PATH; as these are often only writable by root, there's a strong chance
that won't happen.
As soon as you put "." on your path, the commands you type can be
overridden by malware, and strange and wonderful things can result
(although they're unlikely to be pleasant things).
If you want your script to be in path, put it in path. Don't bend path
to meet your script. Copy it into, for example, /usr/local/bin/ and be
done with it.
HTH
Vic.
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
.
- Follow-Ups:
- Re: help adding start and shutdown script
- From: Matthäus Banach
- Re: help adding start and shutdown script
- References:
- help adding start and shutdown script
- From: James A
- Re: help adding start and shutdown script
- From: Matthäus Banach
- help adding start and shutdown script
- Prev by Date: Re: FC4 Gnome Menu
- Next by Date: Re: help adding start and shutdown script
- Previous by thread: Re: help adding start and shutdown script
- Next by thread: Re: help adding start and shutdown script
- Index(es):
Relevant Pages
|
|