LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-06-2011, 04:29 PM   #1
Spartacus1
LQ Newbie
 
Registered: Oct 2011
Distribution: OpenSUSE, Ubuntu, Fedora
Posts: 7

Rep: Reputation: Disabled
How do I enable root in 2011?


Hello to all!
I am using Mandriva 2011 and I am wanting to enable root GUI logon.
I do understand the risks of using root.
Thanks!
 
Old 11-06-2011, 04:31 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
If you understood the risks, you wouldn't be asking the question. Login as a user and su or sudo to execute what you need to with root authority.
 
1 members found this post helpful.
Old 11-06-2011, 04:40 PM   #3
Spartacus1
LQ Newbie
 
Registered: Oct 2011
Distribution: OpenSUSE, Ubuntu, Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by macemoneta View Post
If you understood the risks, you wouldn't be asking the question. Login as a user and su or sudo to execute what you need to with root authority.
Well, that's why I want to know how: I find it annoying having to continuously type "(kde)su" all the time to make system changes.
I do appreciate your concern.
 
Old 11-09-2011, 12:19 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, you should be able to find the setting in msec (mandriva security).

From the MCC (Mandriva control center).

There are other ways...

Regards Glenn
 
Old 11-09-2011, 01:01 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Well, that's why I want to know how: I find it annoying having to continuously type "(kde)su" all the time to make system changes.
I do appreciate your concern.
then i guess you also run MS Windows as an Administrator and have the system turned into a zombie or a bot for a bot herder .


Linux IS SAFER than windows if YOU - the USER, is NOT THE PROBLEM .

the OS developers turned the gui root login OFF for GOOD security reasons
X window is NOT SAFE TO RUN AS ROOT !!!
 
Old 11-09-2011, 07:27 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I thought I'd seen this before...

I agree totally with the warnings above, and I no longer use this method,

but in the name of freedom, see my tute here...

http://glennwaller.blogspot.com/2010...-and-sudo.html
 
Old 11-09-2011, 10:56 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by GlennsPref View Post
but in the name of freedom, see my tute here...
The freedom of what? Annoying other users with spam sent from such a machine? Or being DDoS attacked by zombie computers? Or brute-forced? ...
 
Old 11-10-2011, 05:00 AM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
OK, Liberty then.
 
Old 11-10-2011, 05:37 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by Spartacus1 View Post
Well, that's why I want to know how: I find it annoying having to continuously type "(kde)su" all the time to make system changes.
Then perhaps you've chosen the wrong operating system. Convenience and security never mix, one gets boosted at the expense of the other.
 
Old 11-10-2011, 06:08 AM   #10
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Not trying to start any war or anything, but is there any website that explains in a technical way why graphical root login is bad?

Again, purely in the interests of knowledge. I know it's the right thing not to log in as root, but after years of Linux experience, I must confess that I hadn't investigated this very thoroughly.

(BTW. I always log in as a user except in my early days with Linux)
 
Old 11-14-2011, 06:03 AM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile Being root is bad

here is a taste of what others have written about being root, as apposed to using sudo.
the last article goes on to explain sudo and "granular delegation".

"Liberty comes with responsibility"


Quote:
Let's try an analogy, and just for maximal irritation let's make it a
car analogy, which I know everyone loves:

You drive your 12 year old son to school every day. In this sense, he is
a user of the car. You fill the tank at the same gas station every day.

Would you give the keys of your car to your 12 year old son, and ask him
to drive to the gas station, simply because your son is an authorised
"user" of your car, and because you trust the quality of the fuel from
that gas station?

Users are not, and should never be, administrators.
ref. http://www.spinics.net/lists/fedora-...msg126543.html

Quote:
If you're logged in as root, you can easily wipe directories or do something that in retrospect is really dumb on the system with the flip of a finger, while as a user you normally have to put a few extra mental cycles into what you're typing before doing something that is dangerous.

Also any program you run as root as root privileges, meaning if someone or something gets you to run/compile/browse a website that is dangerous and wants to damage your system, such as a trojan or other malware, it has full access to your system and can do what it wants, including access to TCP ports below 1024 (so it can turn your system into a remailer without your knowledge, for example).

Basically you're kind of asking for trouble that logging in as yourself may prevent. I've known many people that ended up being glad they had that safety net in a moment of carelessness.

EDIT: There is also the issue of root being the most well known, thus an easy target, for scripts and hacks. Systems that disable the account and instead force users to use sudo means that any attempt to crack root from ssh or a local exploit to the account are banging their heads against a wall. They'd have to guess/crack a password and username. It's security through obscurity to a degree but it's hard to argue that it doesn't foil most script kiddie attacks.
ref. http://www.dummies.com/how-to/conten...-linux-93.html

Quote:
There are several reasons why this is so:
Eavesdroppers
Although the whole point of SSH is to make eavesdropping unfeasible, if not impossible, there have been a couple of nearly feasible man-in-the-middle attacks over the years. Never assume you're invincible: if some day someone finds some subtle flaw in the SSH protocol or software you're using and successfully reconstructs one of your sessions, you'll feel pretty stupid if in that session you logged in as root and unknowingly exposing your superuser password, simply in order to do something trivial like browsing apache logs.
Operator error
In the hyperabbreviated world of Unix, typing errors can be deadly. The less time you spend logged in as root, the less likely you'll accidentally erase an entire volume by typing one too many forward slashes in an rm command.
Local attackers
This book is about bastion hosts, which tend to not have very many local user accounts. Still, if a system cracker compromises an unprivileged account, they will probably use it as a foothold to try to compromise root too, which may be harder for them to do if you seldom log in as root.
ref. http://etutorials.org/Linux+systems/...r+Handy+Tools/

Cheers and regards Glenn

ps. Personally, if someone got into my house, they could do whatever they wanted and screw-up my system for me (If I was logged in as root).

Last edited by GlennsPref; 11-14-2011 at 06:18 AM. Reason: examples from the web...
 
Old 11-15-2011, 06:06 PM   #12
wheel
Member
 
Registered: Sep 2003
Posts: 33

Rep: Reputation: 16
How often does someone need to modify their system anyway? Every couple of days I type in my root password to download updates. Other than that, you're probably using your computer for tasks, not for administering your system - and tasks are done just fine as a user.

The real problem I think is that if you're running as root all the time and you get exploited, you're screwed - the intruder has full access to everything. Running as a user, the intruder's access is more limited.

I believe once your system is set up and running you'll have little need for running as root.
 
Old 11-16-2011, 09:45 PM   #13
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I posted my response like I have because

when I started with linux, (the knoppix live-cd was the first gui I had "seen working")

Most of my peripheral hardware, (printer, camera, 802.11, graphics card, and sata chip) was not recognised.

But I was excited to finally get away from paying for buggy software.

I'd been using FOSS on M$ and liked it a lot.

While I was configuring linux I constantly had to look for info from the web, which meant reboot and use M$ to get online (28k dialup)

By the way,
I didn't even know what I needed to look for.
I didn't know how to extract the info from my linux system to copy paste a reference note to myself.

I remember spending a lot of time offline.

I remember learning. I am still learning.

But like a child, the teach them all you can and let them go. Hopefully they make the "right" decisions.

Regards Glenn
 
Old 01-12-2012, 05:23 PM   #14
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
It's best to not log in as root, but if you must, simply select "other" instead of the regular user name, and then type in "root".

Wayne Sallee
Wayne@WayneSallee.com
 
  


Reply



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
How to enable sound in linuxmint 10 in root garrydb Linux - Newbie 1 12-20-2010 03:39 PM
[SOLVED] How to enable auto login as a root cimek Linux - Software 25 04-27-2010 03:17 PM
How to enable root login on 6.06 dapper? Sjonnie48 Ubuntu 6 06-11-2007 08:36 AM
Enable root login in wu-ftpd? Sevoma Linux - Software 5 02-04-2005 06:49 PM
enable root pop spank Linux - Newbie 2 12-11-2003 02:39 PM

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

All times are GMT -5. The time now is 09:39 PM.

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
Open Source Consulting | Domain Registration