LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Grant Configuring SUDO Root Privileges to Regular Users +Problem+ (https://www.linuxquestions.org/questions/fedora-35/grant-configuring-sudo-root-privileges-to-regular-users-problem-532584/)

redir 02-26-2007 10:58 AM

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.

cgjones 02-26-2007 11:02 AM

Try this:
Code:

sudo /path/to/lsof -i :80
You can get the path to lsof using the following command:
Code:

which lsof

redir 02-26-2007 11:10 AM

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.


All times are GMT -5. The time now is 03:40 AM.