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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2012, 11:02 PM
|
#1
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746
|
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.
|
|
|
11-02-2012, 11:18 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992
|
as root look in visudo
that will tell you what you can/can not do as sudo.
|
|
|
11-03-2012, 01:24 AM
|
#3
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746
Original Poster
|
Quote:
Originally Posted by lleb
as root look in 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.
|
|
|
11-03-2012, 09:43 AM
|
#4
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
|
Just invoke: It will list the commands allowed for invoking user.
|
|
|
11-03-2012, 10:28 AM
|
#5
|
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746
Original Poster
|
Quote:
Originally Posted by shivaa
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.
|
|
|
11-03-2012, 11:25 AM
|
#6
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
|
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 05:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|