cannot start program from terminal

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
jpg153
Donor
Posts: 473
Joined: 23. Oct 2009, 15:43
Location: Krefeld/NRW/BRD/EU

cannot start program from terminal

Post by jpg153 »

Hi,

since long I am participating in distributed.net calculations.
I am running the dnet client usually once from within a terminal session:

Code: Select all

jpg[~]$ cd dnet
jpg[dnet]$ dnetc
bash: dnetc: Kommando nicht gefunden.
dnetc is the client program and ran since the upgrade to 14.1.
Is this a security issue and if how to overcome this?

If not security, what is the rub?

Thanks

Update: when issusing the command

Code: Select all

jpg[dnet]$ ./dnetc
it runs.
Why or when did that change? :?
Regards Gruß
jpg
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: cannot start program from terminal

Post by mimosa »

This is normal behaviour, unless that directory is in your $PATH. It is also possible to add ./ to $PATH, and maybe before you were calling it in an environment where that was somehow the case. Doing so for root is not recommended for security reasons, and there may be a similar ( but weaker) reason for other users. Perhaps something to do with sudo?

I just tested on my system and I need the ./ - and I know I haven't fiddled with this aspect of my environment variables since installation.

EDIT

See this link (especially the first answer) for an explanation of the risk and pros and cons, even not as root.

http://serverfault.com/questions/98587/ ... ry-to-path

Of course you are still free to do it ...
Post Reply