LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   sudo: readme : command not found (http://www.linuxquestions.org/questions/linux-security-4/sudo-readme-command-not-found-72866/)

vishal.thorat 07-15-2003 06:46 AM

sudo: readme : command not found
 
Hi All
while sudoing an application command "readme" i get the following message

sudo : readme : command not found

The readme command is in /opt/ecs/sbin which is not in my PATH
There is an entry in sudoers file /etc/sudoers for this command .
This command "readme" can be executed by all user.
The command works when the obsulute path is provided .
(viz "sudo /opt/ecs/sbin/readme")

But i need to make it work with "sudo readme"

Please advice
Your response will be a great help.

Regards
Vishal Thorat

MasterC 07-15-2003 06:52 AM

Symlink it to a location in all users PATH such as /usr/bin :
ln -sf /opt/ecs/sbin/readme /usr/bin

And then call it with:
sudo readme

See if that works.

What is "readme"?

Cool

stickman 07-15-2003 08:58 AM

Or you could possibly add /opt/ecs/sbin to your PATH.

german 07-17-2003 06:56 PM

or is it in the current path, in which case you're just missing "./"


All times are GMT -5. The time now is 09:30 PM.