LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 07-09-2002, 09:29 PM   #1
Optimus
LQ Newbie
 
Registered: Jul 2002
Location: Michigan
Distribution: Mandrake v8.2
Posts: 11

Rep: Reputation: 0
Logging in as root


I run Mandrake Linux v8.2 and I was curious as to how to log in as root by default; or if it's possible to grant a user all of the root users permissions?
 
Old 07-09-2002, 09:34 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Don't even think about.
Next what you should be doing is logging in with your user
accound and su - root

If you want a set of root prevs use sudo
man sudo
man visudo
man sudoers

You can login in as root from the main login prompt.
 
Old 07-09-2002, 10:05 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Its usually best to learn and only use your system as a regular user, then when you need root privileges, then login as root or setup sudo as pickled suggested. Your much better off that way instead of running root all the time you can make a goofup on your system and open for vulnerabilities.
 
Old 07-09-2002, 10:34 PM   #4
Optimus
LQ Newbie
 
Registered: Jul 2002
Location: Michigan
Distribution: Mandrake v8.2
Posts: 11

Original Poster
Rep: Reputation: 0
Well I don't run this system on the internet and I am willing to risk the goof ups. I usually do a lot of reaearch before I do anything and I havn't messed up yet. There are seemingly a lot of things that I am accustomed to doing in Windows that I can't do in Linux without being root. It drives me nuts and I'd just assume not even use Linux it I can't completely taylor it around my needs like I can with Windows. I am not conserned about goof ups and my computer is not norad so I am not paraniod about security.

Is there a way to log in as root by default?

By the way, thanks for the help so far.

EDIT:

What is su-root anyway?

Last edited by Optimus; 07-09-2002 at 10:40 PM.
 
Old 07-09-2002, 10:50 PM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Try this:
login in as your self:
$ su - root

and see what happens

or better yet
man su

One more time at the login prompt

Login : root
Password: *******


So are you just lazy or what
 
Old 07-09-2002, 11:35 PM   #6
Optimus
LQ Newbie
 
Registered: Jul 2002
Location: Michigan
Distribution: Mandrake v8.2
Posts: 11

Original Poster
Rep: Reputation: 0
I don't have a log in for some reason. It just loggs me in as the default user I set up and not as root. I want to be able to turn on my computer run upstairs and get a pop out of the fridge while it's booting and by the time I get back down it's sitting on the gnome desktop with FULL permissions and NO stupid passwords.

Im not lazy; I just find it rather stupid that this can't be done easily in Linux. For instance when you install Windows it gives you the option to assume that the default user is the sys admin and you don't need a password.

I hate passwords and security that makes the session at my box more complicated needlessly.


Back to the Problem:

So I don't have a log on at startup, it just goes right to the desktop without asking me for a password. But it is the default user and not root. I want to have complete control over everything (logging in as root at startup with no password) upon boot up. I don't want to have to boot and log out and then log back in and everytime I use linux. I just want to log in with no password as root by default.

Can this be done???
 
Old 07-09-2002, 11:49 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
As it was stated it is not safe to do so, but if you want to what the heck, go ahead just don't blame us if the next thing you know you can't boot into linux
GNOME start menu -> Programs -> System -> GDM configurator choose expert check the box against allow root login using GDM, then on the left pane go to basic and the last tab should be automatic login, check the boxes and fill in the blanks.
 
Old 07-10-2002, 12:08 AM   #8
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
neo77777, What can we say, you try to rear them right ....
 
Old 07-10-2002, 01:18 AM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Quote:
neo77777, What can we say, you try to rear them right ....
Nope I am just answering a question, the thing is with root logins you must be confident or ass crazy to do things as root wide open, I had an acquaintance like this, he loved windows before I showed him my desktop and he was like "wow, that's cool how do you do it in windows?" "windows?", I said, "no it is not" then he got pissed off cause he believed there were no alternatives and he was fool proofing it, man you should've heard his ranting about it. So now he uses linux , I offered my help during install it was refused, and a week later he came over telling me that I am stupid and my linux (he prononced it lienooks) is as crapy as I am, so I asked him to reason and he said it was f... up very badly. I came over his place and I asked him to login, my hair almost became gray when I saw in KDM
login: root
password: ******** (his name by the way, I learned it later)
with cable connection always on !!!
So I tried to explain what is wrong with such a deliberate act, he didn't even listen to me and kept cursing at linux and Linus' mother. So, after that I just said you know here is windows Me, my own copy, have it and enjoy. He got pissed and I have never offered my help since. The last time I saw him he claimed he figured out lienooks thing and he is a pro now - I just can imagine.

Last edited by neo77777; 07-10-2002 at 01:21 AM.
 
Old 07-10-2002, 01:32 AM   #10
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Quote:
Originally posted by neo77777

Nope I am just answering a question, the thing is with root logins you must be confident or ass crazy to do things as root wide open, I had an acquaintance like this, he loved windows before I showed him my desktop and he was like "wow, that's cool how do you do it in windows?" "windows?", I said, "no it is not" then he got pissed off cause he believed there were no alternatives and he was fool proofing it, man you should've heard his ranting about it. So now he uses linux , I offered my help during install it was refused, and a week later he came over telling me that I am stupid and my linux (he prononced it lienooks) is as crapy as I am, so I asked him to reason and he said it was f... up very badly. I came over his place and I asked him to login, my hair almost became gray when I saw in KDM
login: root
password: ******** (his name by the way, I learned it later)
with cable connection always on !!!
So I tried to explain what is wrong with such a deliberate act, he didn't even listen to me and kept cursing at linux and Linus' mother. So, after that I just said you know here is windows Me, my own copy, have it and enjoy. He got pissed and I have never offered my help since. The last time I saw him he claimed he figured out lienooks thing and he is a pro now - I just can imagine.

Great story
[WOT] = Way off topic
My mother gave a favorite recipe to a friend.
When she asked the freind a while later if she liked the recipe , the friend replyed that it was terrible

My mom, say did you remember to put the crushed pineapple in .... NO I don't like pinapple I used ..... instead
Well my mom comes to find out she ad pretty much rewriten then entire recipe and then had the gull to complain about it not tasting good

Last edited by pickledbeans; 07-10-2002 at 01:34 AM.
 
Old 07-10-2002, 02:38 AM   #11
Optimus
LQ Newbie
 
Registered: Jul 2002
Location: Michigan
Distribution: Mandrake v8.2
Posts: 11

Original Poster
Rep: Reputation: 0
Nice stories guys. I am trying to approach this with a level head.
Though it's difficult for a Windows Lover (me) to migrate to linux. Thanks for the help.

Well you two are way off topic maybe you could jump back on it again and explain to me why You wouldn't do this. All the critical reasons.

:^)
 
Old 07-10-2002, 06:03 AM   #12
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Optimus
Well you two are way off topic maybe you could jump back on it again and explain to me why You wouldn't do this. All the critical reasons.
I'll give you my reasons:

1. Unsecure
2. If you accidently delete something or it goes wrong, like you do something like this: rm -rf / somefile ( can you tell me what happens if you run that command as root ? )
There goes your whole system, reinstall time... !!
3. Very insecure
4. I know of one person that installed Mandrake, the same day as he didn't have a auto login but logged in directly as root, he left his machine and came back, it was already trashed by a intruder.. Reinstall time.. !!
5. Basically very insecure and not necessary.
6. Other ways around it instead of being root.
7. Basically just stupid idea to be root with a auto login.. its like leaving the key to your house in the keyhole, available for anyone to unlock the door for access.

Ok, my reasonings. There are just so many reasons not to have a autologin and especially as root. If you want a auto login, at least just make it so its a regular user, then when you actually need to be root, take the 2 seconds it takes and su as root, or setup sudo... I can perform about anything I want without actually being root..

Last edited by trickykid; 07-10-2002 at 06:39 AM.
 
Old 07-10-2002, 06:15 AM   #13
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 30
Hi!

Well, I agree with all the other posters. Doing normal things as root is *STUPID*.

I'd also suggest reading this,, some tips for newbies to secure their linux boxen. http://www.desktop-linux.net/security.htm

Good Luck!!
RefriedBean
 
Old 07-10-2002, 07:14 AM   #14
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
I'm out of here

Last edited by pickledbeans; 07-10-2002 at 07:41 AM.
 
Old 07-10-2002, 08:04 AM   #15
NGene
Member
 
Registered: Mar 2001
Location: Turku, Finland
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by Optimus
There are seemingly a lot of things that I am accustomed to doing in Windows that I can't do in Linux without being root.
What things? Do you need to constantly install and remove programs or change the system settings? If you don't, chances are that you'll be able to do your things as a normal user as well.
 
  


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
logging in as root M O L8ingN2dust Ubuntu 24 01-16-2006 05:49 PM
Logging in as Root The Oate Mandriva 15 08-02-2004 03:44 PM
Logging in to Root NathanCohen2003 Linux - Software 3 07-10-2004 05:11 PM
Logging in as a root??? FastSwimmer Mandriva 4 03-01-2004 05:05 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 03:55 AM


All times are GMT -5. The time now is 05:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration