Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-15-2003, 06:46 AM   #1
LQ Newbie
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Angry 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.

Vishal Thorat
Old 07-15-2003, 06:52 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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"?

Old 07-15-2003, 08:58 AM   #3
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Or you could possibly add /opt/ecs/sbin to your PATH.
Old 07-17-2003, 06:56 PM   #4
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't perform root command by using Sudo acbenny Linux - General 6 05-07-2008 09:19 PM
can't run app w/ sudo command fatblueduck Linux - Software 2 09-30-2005 08:39 PM
SUDO Command help TPAWired Linux - Software 3 08-15-2005 02:50 PM
sudo command not working startproc cmd not found Imajica21 Linux - General 2 04-14-2005 02:22 PM
sudo command usage??? pagadala_cs Linux - Software 1 12-24-2004 11:13 AM

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration