Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Can anyone tell me how can iI give root privilegis to a user because I want to install oracle and it says that I don't have to do it like root but also I have to install php with oracle and apxs and I need to do that as root
If you 'wish to make a user permanently root equivalent, like I did with my Admin account. You have to do a sort of hack.
Here's the steps to do it:
1. Log in as root
2. edit your /etc/passwd file with an editor
3. search for the loginname of your user
4. you will find a line like this:
1 2 3 4 5 6 7
5. Don't worry if the numbers after the X are different
This is what they mean:
2= Encrypted password, here it is a shadowpassword
3= The User ID
4= The Group ID
5= The name of the user
6= The homedirectory of the user
7= The login shell of the user
6. All you have to do now, is to change both the user and the group ID to 0 which means the User ID = ROOT and group ID = ROOT
7. Now login as the new user and you have root equivalency.
One minor problem is that from now you will receive all the mail that the root user receives also. You share one emailbox, that is the ROOT email.
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
The root user is a superuser and you should never create an equivalent account. Its a gross security violation and a very poor safety practice. I know all the excuses people give for doing it.. but sooner or later.. you WILL get bit in the butt by it, either through security or by making a mistake yourself.
SUDO will allow users to perform certain actions as 'root'. That should only be used in instances where the application is not fully matured to allow ordinary users to run it.
I don't understand why you need this access, however. Simply become 'root', install Oracle and the other stuff, then run them as a regular user. Just like any other app.