LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices

Reply
 
Search this Thread
Old 02-03-2001, 02:00 PM   #1
atlonyx
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Rep: Reputation: 0

Hello there,

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

Thank's
 
Old 02-03-2001, 04:25 PM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,358

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
I would use sudo as it will all you to give root privileges without giving out the root password.
 
Old 02-04-2001, 02:04 AM   #3
atlonyx
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
But I don't want to became root I jast want to remain a user but with root rights. Is there any command that as root I can give to a user root's wrights
 
Old 02-04-2001, 11:14 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,358

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
This is what sudo does. If you type "sudo ls" you will remain you, but the ls command will be executed as root. You can specify what users can execute what commands in the config file.
 
Old 02-04-2001, 12:50 PM   #5
atlonyx
LQ Newbie
 
Registered: Feb 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Is there something wrong with my linux because he doesn't know the sudo command? It says that command not found .

I have installed RedHat6.2



 
Old 02-04-2001, 01:12 PM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,358

Rep: Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616Reputation: 2616
The sudo binary is usually in /usr/bin. It may not have been installed by default. You can download sudo from http://www.courtesan.com/sudo/.
 
Old 02-08-2001, 09:43 AM   #7
DGTL_Magician
LQ Newbie
 
Registered: Feb 2001
Location: Drachten
Posts: 21

Rep: Reputation: 15
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:
admin:x:501:501:admin:/home/admin:/bin/bash
1 2 3 4 5 6 7
5. Don't worry if the numbers after the X are different
This is what they mean:
1= Loginname
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.
 
Old 02-15-2001, 03:36 PM   #8
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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.
 
Old 02-16-2001, 12:59 AM   #9
DGTL_Magician
LQ Newbie
 
Registered: Feb 2001
Location: Drachten
Posts: 21

Rep: Reputation: 15
I believe that oracle has to run as a deamon on the machine with root priviliges, if you disable remote login ability you should be fine..
 
Old 08-02-2004, 01:10 AM   #10
wtf??wtf??
LQ Newbie
 
Registered: Aug 2004
Location: the z00
Distribution: crack/coke
Posts: 1

Rep: Reputation: 0
thx

thx... DGTL_Magician

We all hopefuly know that this is bad security... but hey if someone wants to give a user root, then thats the choice they made.... go ahead.

Last edited by wtf??wtf??; 08-02-2004 at 01:18 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
How to give user always root privileges? SimeonV Suse/Novell 18 06-23-2005 11:02 AM
runing login script with root privilleges djgerbavore Linux - Networking 8 06-16-2005 02:36 PM
How can I give myself root priv's as a user? Mr. Hill Linux - Newbie 9 06-12-2005 02:19 PM
Give root priviligies to an user Skululu Red Hat 7 03-06-2004 08:11 AM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration