LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-15-2003, 05:46 AM   #1
vishal.thorat
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.

Regards
Vishal Thorat
 
Old 07-15-2003, 05:52 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 07-15-2003, 07:58 AM   #3
stickman
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, 05:56 PM   #4
german
Member
 
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 "./"
 
  


Reply



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 08:19 PM
can't run app w/ sudo command fatblueduck Linux - Software 2 09-30-2005 07:39 PM
SUDO Command help TPAWired Linux - Software 3 08-15-2005 01:50 PM
sudo command not working startproc cmd not found Imajica21 Linux - General 2 04-14-2005 01:22 PM
sudo command usage??? pagadala_cs Linux - Software 1 12-24-2004 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:02 AM.

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