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 |
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 |
Or you could possibly add /opt/ecs/sbin to your PATH.
|
or is it in the current path, in which case you're just missing "./"
|
All times are GMT -5. The time now is 07:36 AM. |