LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-29-2003, 12:54 PM   #1
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
Root question


Hi folks:

I know is a no no to log in as root, anyway i (logged as root) added my user account to the root group, but anytime i want to configure the control center i'm prompted for root pswd. Maybe this is not enough to grant root access to a normal account.
So, how can i inherit root power to a user account?
 
Old 08-29-2003, 01:27 PM   #2
Azlinon
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake i586
Posts: 12

Rep: Reputation: 0
That would defeat the whole point. You do NOT want to have root access on a normal account (although it is possible, it's a hack and I will not be telling you how).

What you want, is the su command that will let you take on root priveleges for a bit, then type exit to switch back. Use this as sparingly as possible to protect yourself.
 
Old 08-29-2003, 03:42 PM   #3
blixblix
Member
 
Registered: Aug 2003
Location: Berlin
Distribution: Mandrake, Debian, Suse
Posts: 44

Rep: Reputation: 15
You might as well go back to using MS. Crackers would love for you to do this for them. Actually this is what they do when they break into your machine. And how they do it? They set a normal user or service's PID to 0. 0 is always reserved for root. Look in the /etc/passwd file and see for yourself.

Typing in a couple characters may be a small annoyance but it's better than having your whole drive erased.
 
Old 08-29-2003, 04:26 PM   #4
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Original Poster
Rep: Reputation: 30
Wow! ppl lecturing me for such a silly question =P
Thanks a lot for your answers, but i'm afraid you misundertsood the objetive of my question. I was asking for knowledge, i don't plan to keep a RockmanExe-root (just an example) super user logged in my system and surfing the net.
Thanks for your concern, anyway =)

cheers!!!
 
Old 08-29-2003, 04:37 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
he he he, I was thinking the same thing

Yeah, you really don't want to do what you are asking Giving a regular user the rights and priv's root has is really defeating the purpose of having a single super user (root). Options for giving some of the root's priv's to certain users, or a set of users (via a group) would done by using su or better, sudo. Check out man sudo for more info. That's the correct way to achieve the 'super user' without using root all the time. However, you also don't want to give those 'super users' a lot of permissions either. A nice balance is the best way to go, but if you aren't sure what that is, you are better off simply using 'su -' to get into the root account temporarily to do the dirty work, then exiting

Feel free to ask more questions, security usually rubs people the wrong way, especially when it's how to be 'insecure' But how else are you going to learn right? From us telling you of course! Oh, and definitely check out the Security thread in Linux - Security, tons of great info on securing a box down, should cover just about anything you can think, and then some.

Cool
 
Old 08-29-2003, 04:43 PM   #6
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Original Poster
Rep: Reputation: 30
Thnx!! i didn't know about sudo... now i have homework to do (a nice reading about it) =D
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
root question manicman Linux - Newbie 2 11-03-2005 05:20 AM
root question. ratatat Linux - Newbie 7 12-27-2004 03:57 PM
root question Xris718 Linux - General 6 07-15-2003 03:25 AM
root question? indy317 Linux - General 5 05-20-2003 04:43 PM
root question spuppett Linux - General 4 03-01-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:34 AM.

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