Re: help adding start and shutdown script
- From: Matthäus Banach <accounts@xxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 11:51:35 +0200
Hi Vic,
Vic wrote:
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).
I agree with that. I, personally, wouldn't do it on my own computer. But: If you put "." as the last entry into your $PATH variable, all other directories in your searchpath override executables that reside in the current directory. So the risk is not as big, as it seems at first.
But, to tell it once again: I do not recommend this, if you don't want malware to be theoretically able to override often used commands like "ls", "cd" etc. by placing an executalbe with the same name into a commonly used folder.
And: NEVER DO THAT TO THE ROOT ACCOUNT.
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.
My alternative: place a symlink in /usr/local/bin.
HTH
Vic.
Matthäus
.
- Follow-Ups:
- Re: help adding start and shutdown script
- From: James A
- 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
- Re: help adding start and shutdown script
- From: Vic
- help adding start and shutdown script
- Prev by Date: Re: FC4 Gnome Menu
- Next by Date: Re: Set Resolution on X for 19 inch monitor
- Previous by thread: Re: help adding start and shutdown script
- Next by thread: Re: help adding start and shutdown script
- Index(es):
Relevant Pages
|