Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying ./ 1

Status
Not open for further replies.

Kressmark

Instructor
Apr 28, 2003
158
US
Hi,

At a command prompt in windows you can just type the name
of an application.exe that is in the current directory and
it will run.

In Linux I always must include ./ (i.e. ./application.exe)
Is there a way of always keeping the curent directory in
the search path?

I am sort of looking for a way to have the PWD (working
directory) in my path at all times.
 

export PATH=$PATH:.

and put it in your .bash_profile

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Thanks Guys,

It works! And really, is not that security risk more a theoretical technical possibility than a real security risk?

/mk
 
IMHO (and trust me, on administering linux it is very humble),

If you're running a desktop for your own purposes, or the purposes of yourself and your family, it's an acceptable risk... if you're setting up a server or working on a public box with shared directories.... you're asking for it.

This is the kind of security risk someone reads about in high school and drops on their school computer, because it's so incredibly easy to exploit.

But yeah, on a private desktop, someone is pretty much going to have to compromise your box to do this, and chances are, you have much bigger worries, like whether or not the real ls has been replaced.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top