LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2012, 11:02 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Rep: Reputation: 256Reputation: 256Reputation: 256
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 01:23 AM.
 
Old 11-02-2012, 11:18 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992

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

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

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
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, 09: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, 10:28 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
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, 11:25 AM   #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 08:33 AM
Is there a list of SUDO commands anywhere? NFI Linux - Newbie 7 06-28-2009 07:19 PM
Problem using sudo <commands> just a man Ubuntu 13 06-05-2009 11:13 AM
Limited 'sudo' commands Casket Linux - Security 1 10-23-2007 02:05 AM
sudo and at commands ulto Programming 2 05-01-2004 08:36 AM

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

All times are GMT -5. The time now is 05:11 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