[Linux-Discussion] Re: System Config question

  • From: Nils Vogels <nivo+linux-discussion@xxxxxxxxxxx>
  • To: linux-discussion@xxxxxxxxxxxxx
  • Date: Thu, 17 May 2001 17:02:29 +0200

On Wed, May 16, 2001 at 06:48:30PM -0400, Balvinder Sabherwal wrote:
> 
> Hi Guy's
> 
> on my Linux server, every time I have to execute a script or an Executable
> file, I have to prefix it with a ./ in the current directory. Is there a way
> I can configure it so that I don't have to prefix it with ./ and it can
> execute with just the name of executable.
> 
Yes, there is by updating your PATH variable to include ".", but there are
quite some security risks involved.

For instance, you could be running a trojanised version of the 'ls' program
that is in your current working dir .... think about that before you add "."
to your $PATH !

-- 
Nils Vogels             PGP:0xC26BD15F Available on keyservers.
S@H:1514WU/2.212yr      --> setiathome.ssl.berkeley.edu. Will you find aliens?
All your base are belong to us!  http://www.yuckfou.org/AYB3.swf

Why did it happen ? BOFH Excuse:
      Sysadmin accidentally destroyed pager with a large hammer.
=============================================================
Avenir Web's Linux Discussion List

List info: //www.freelists.org/cgi-bin/webpage?webpage_id=13
To unsubscribe: email linux-discussion-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject line.

Administrative contact: weez@xxxxxxxxxxxxx
=============================================================

Other related posts: