LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-26-2007, 10:58 AM   #1
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Rep: Reputation: 16
Grant Configuring SUDO Root Privileges to Regular Users +Problem+


Running FC3

Followed the instructions on this page: http://fedorasolved.org/post-install-solutions/sudo/

So I created the user and added him to Wheel. I edited the sudoers file.

When I run sudo whoami I get root which according to the tutorial proves that it is working.

Problem is I cannot run sudo lsof -i :80

I get sudo lsof command not found.

Can lsof only be run as root?

Thanks in advance.
 
Old 02-26-2007, 11:02 AM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
Try this:
Code:
sudo /path/to/lsof -i :80
You can get the path to lsof using the following command:
Code:
which lsof
 
Old 02-26-2007, 11:10 AM   #3
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by cgjones
Try this:
Code:
sudo /path/to/lsof -i :80
You can get the path to lsof using the following command:
Code:
which lsof
My goodness that was a fast reply

[root@linuxtest bazhour]# which lsof
/usr/sbin/lsof


//NOW BACK TO MY USER

[bguzzardi@linuxtest ~]$ sudo /usr/sbin/lsof

//prints lsof IT WORKS!

I forgot to mention that as root I can run lsof without the path no problem.

Anyway thank you very much for your time.
 
  


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
Grant Privileges - MySQL Jannyno Linux - General 2 06-23-2012 02:00 AM
Grant a user root privileges to add and delete users Maranza Linux - Security 6 11-02-2006 10:10 AM
Configuring SUDO for users, a.k.a. sudoers Micro420 Linux - Newbie 10 04-21-2006 11:12 PM
How to grant root previlege to other users? wtb1974 Linux - Newbie 4 03-19-2006 12:20 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:13 PM.

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