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!
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.
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.
Sorry if this has been addressed before, but I couldn't find the info I needed by searching the forums. Anyway, I'm quite new to Linux (Red Hat AS 2.1) and need to set up sudoers to allow a user (say, "xyz") to run a certain command (say "/home/oracle/scripts/test1.sh") as user "oracle", not as user "root". We already have sudo working for users to run stuff as root but cannot get it working so that the command "sudo -u oracle /home/oracle/scripts/test1.sh" results in the script being run - instead I always get the error:
"Sorry, user xyz is not allowed to execute '/home/oracle/scripts/test1.sh' as oracle on server.domain."
The lines I have added to sudoers are as follows:
User_Alias TEST = xyz
Runas_Alias T1 = oracle
TEST ALL=/home/oracle/scripts/test1.sh T1
This all seems to be in order but I keep getting the above error.
I realise I've probably missed something obvious but that's me all over.
Any help or advice would be much appreciated.
TIA,
Tony.
EDIT: Sorry to have wasted your time - I found the answer unexpectedly. The line:
Thanks guys but "su" is out of the question. It's a long story but we want our operators to run certain commands as the oracle user but we do not want them to have the oracle user's password - the auditors would have a fit. "sudo" is perfect for our purposes, we were just having trouble with the syntax of "sudoers".
Thanks anyway - I appreciate the effort.
EDIT: Yes - this means I work for a corporate empire who are moving from HP UX to Red Hat for database/app server installations. And we're finding *huge* performance/cost gains as we go. And to think I was a Windows man since forever...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.