LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to know all commands available from Sudo? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-know-all-commands-available-from-sudo-4175435397/)

Xeratul 11-02-2012 11:02 PM

How to know all commands available from Sudo?
 
Hi

How to know all commands available from Sudo?

thanks

** edit **
known from a regular USER.

lleb 11-02-2012 11:18 PM

as root look in visudo

Code:

# visudo
that will tell you what you can/can not do as sudo.

Xeratul 11-03-2012 01:24 AM

Quote:

Originally Posted by lleb (Post 4821187)
as root look in visudo

Code:

# visudo
that will tell you what you can/can not do as sudo.


I have added to the first post :
** edit **
known from a regular USER.

with belongs to avoiding root access to visudo. The file /etc/visudo does not like too to be read by all -o others.

shivaa 11-03-2012 09:43 AM

Just invoke:
Quote:

sudo -l
It will list the commands allowed for invoking user.

Xeratul 11-03-2012 10:28 AM

Quote:

Originally Posted by shivaa (Post 4821400)
Just invoke:It will list the commands allowed for invoking user.

wow... Never imagine that it would be like that although came across man.

Many thanks !! greatly helped.

shivaa 11-03-2012 11:25 AM

You're welcome! It was just a "man sudo" away ;)
BTW, Please mark the thread as solved, if it's solved.


All times are GMT -5. The time now is 01:18 PM.