Page 1 of 1

cannot start program from terminal

Posted: 30. Apr 2014, 12:19
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? :?

Re: cannot start program from terminal

Posted: 30. Apr 2014, 12:52
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 ...