LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2012, 12:02 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
How to know all commands available from Sudo?


Hi

How to know all commands available from Sudo?

thanks

** edit **
known from a regular USER.

Last edited by Xeratul; 11-03-2012 at 02:23 AM.
 
Old 11-03-2012, 12:18 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
as root look in visudo

Code:
# visudo
that will tell you what you can/can not do as sudo.
 
Old 11-03-2012, 02:24 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by lleb View Post
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.
 
Old 11-03-2012, 10:43 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Just invoke:
Quote:
sudo -l
It will list the commands allowed for invoking user.
 
Old 11-03-2012, 11:28 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by shivaa View Post
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.
 
Old 11-03-2012, 12:25 PM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

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


Reply


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
[SOLVED] Allow commands without SUDO Touch Linux - Newbie 6 01-05-2011 09:33 AM
Is there a list of SUDO commands anywhere? NFI Linux - Newbie 7 06-28-2009 08:19 PM
Problem using sudo <commands> just a man Ubuntu 13 06-05-2009 12:13 PM
Limited 'sudo' commands Casket Linux - Security 1 10-23-2007 03:05 AM
sudo and at commands ulto Programming 2 05-01-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration