Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have created a local group with associated users and the group is called PowerUsers. When I edit my sudoers file (visudo) what should I type in the sudoers file, so users in the PowerUser Group can type [B]sudo PowerUser [/B, be prompted for a password and have the ability execute files in the /sbin/ directory?
You will have to use sudo with -g to specify what group you want to run as. When coming to configuring your sudo config, it would have to be as such:
PowerUser ALL=(ALL) /sbin/
Note that I don't think that will work as advertised, and you will have to tweak it to your liking's. I highly suggest reading the man page for more information, and better coverage on what means what, and how to do what.
And that's where the problem lays; I gave you a rough draft so you can see briefly how to do it. As I said in my first post, read the man page, and learn how to actually do it, since if I do it for you, you won't really understand what is going on, and why. I am doing this because you should really understand why and how, and not just using someone else's code, and calling it good.
The problem was I did not identify properly the group PowerUser. Running visudo and add under the catagorey ##User Alisas I added User_Alias FULLTIMERS = %PowerUser Under #Host Alias I added Host_Alias CLIENT = yoda (yoda being the client the user will login). Down near the bottom under the catagories MACHINE COMMANDS I entered FULLTIMERS ALL=(ALL) /sbin/, /bin/ . Thus members of the Linux Group PowerUser which is linked to the sudo group FULLTIMERS can run commands found in /sbin and /bin.