LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-23-2012, 04:15 AM   #1
FZappa
LQ Newbie
 
Registered: May 2012
Location: USA
Distribution: Slackware 14 xfce, LMDE xfce
Posts: 12

Rep: Reputation: Disabled
I Want To Login as Root in Debian "Squeeze" (know its been asked a zillion times)


I am sorry to ask this same old question but I just want the ability to login as root like I can in Slackware. I did a search and all the posts I've read seem to be reduced to borderline flame wars on the perils and pitfalls when using root.I've always used root to compile packages, kernels etc. without any problems. I don't care much for su, sudo, fakeroot or whatever else you want call it. All I am asking for is a simple answer(s) to my question please.

Thanks in advance
Frank

P.S Have not used Debian since Etch so be easy on me people.
 
Old 06-23-2012, 04:42 AM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,132
Blog Entries: 4

Rep: Reputation: 279Reputation: 279Reputation: 279
Do you mean the simple procedure of logging into a session with:
Login: root
Password: *******
or automatically log in as root (perhaps even into a GUI)?
If it is the latter, it will definitely start a discussion.
 
Old 06-23-2012, 05:04 AM   #3
FZappa
LQ Newbie
 
Registered: May 2012
Location: USA
Distribution: Slackware 14 xfce, LMDE xfce
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Do you mean the simple procedure of logging into a session with:
Login: root
Password: *******
or automatically log in as root (perhaps even into a GUI)?
If it is the latter, it will definitely start a discussion.
I want to login into a gui as root with a password.(already have a root password) In Etch I could do just that but don't remember if I had to edit something or it just installed with the ability to login as root.

Frank

Last edited by FZappa; 06-23-2012 at 05:08 AM.
 
Old 06-23-2012, 05:11 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,165
Blog Entries: 54

Rep: Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807
Quote:
Originally Posted by FZappa View Post
I've always used root to compile packages, kernels etc. (..) I don't care
You should care. The fact that you did doesn't legitimize continuing a bad habit: two wrongs don't make a right.
*Best practices, "doing things the Linux way", are based on design principals like separation of privileges and not the misguided result of mistaking laziness for convenience.


Quote:
Originally Posted by FZappa View Post
I just want the ability to login as root
You can on the command line NP. If you meant X11 / Xorg then this depends on the DE you use. For GNOME search /etc for GDM-related stacks and for KDE search /etc for KDM configuration files.
**Running X itself is already problematic in the way it (ab)uses resources (Xorg alone lists 21 code execution vulns, 18 buffer overflows, 7 DoS and more memory corruption vulns than you would want to know about) and running X and any X-based applications as root is a clear security risk and it makes things easier to fsck up good.
 
1 members found this post helpful.
Old 06-23-2012, 05:33 AM   #5
FZappa
LQ Newbie
 
Registered: May 2012
Location: USA
Distribution: Slackware 14 xfce, LMDE xfce
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks unSpawn for your help. However, that doesn't answer my question. If a moderator cannot or will not help me then no one else will I think. Maybe you should delete this thread before it gets anymore off topic. I'll just go search another forum for some help

Thanks again

Frank

Last edited by FZappa; 06-23-2012 at 05:36 AM.
 
Old 06-23-2012, 05:38 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,165
Blog Entries: 54

Rep: Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807
Whats difficult about searching /etc/ for GNOME or KDE Display Manager configuration files? Did you actually try something like 'find /etc/ -type f -iname \*gdm\* -o -iname \*kdm\* -print0 2>/dev/null| xargs -0 -iX grep -Hi root 'X';'?
 
Old 06-23-2012, 06:05 AM   #7
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,132
Blog Entries: 4

Rep: Reputation: 279Reputation: 279Reputation: 279
Quote:
Originally Posted by FZappa View Post
If a moderator cannot or will not help me then no one else will I think.
The answer was a very good answer, if you are looking for guidance. If, on the other hand, you are looking for spoon-feeding, how could a better answer have been given? Without knowing which DE you are using, it would be unrealistic to expect unSpawn to type detailed instructions for all four major DEs.
 
Old 06-23-2012, 06:13 AM   #8
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,354

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Perhaps if you don't know what to change to allow you to log into the display manager as root then you ought to learn that before you consider logging in as root?
If you know better than the people telling you not to do something then why do you need their help?
 
Old 06-23-2012, 08:12 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, FreeBSD
Posts: 1,269

Rep: Reputation: Disabled
This has been covered multiple times, if you really want to do it, use the forum search and you will find enough threads to keep you going on with.
 
Old 06-23-2012, 08:16 AM   #10
FZappa
LQ Newbie
 
Registered: May 2012
Location: USA
Distribution: Slackware 14 xfce, LMDE xfce
Posts: 12

Original Poster
Rep: Reputation: Disabled
I found some old info I had on Debian. I keep a big pile of notes on Linux and found what I needed.It was really simple, no terminal needed. Now I can login as root when I need to.

Thanks everyone
Frank
 
Old 06-25-2012, 01:38 PM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,452

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
Can you post solution for others to benfit from it & mark thread solved?
 
Old 06-25-2012, 02:09 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Quote:
Originally Posted by FZappa View Post
I found some old info I had on Debian. I keep a big pile of notes on Linux and found what I needed.It was really simple, no terminal needed. Now I can login as root when I need to.

Thanks everyone
Frank
Nice that you found a solution for this.
Now may I kindly ask you to detach your machine from the Net?
I don't care that you run your machine as root, but as soon as you do this and use software that connects to the Net (like browser or e-mail client) I see your machine as potentially compromised. It would be nice if you don't bother us with Spam, DDOS attacks or brute-forcing our servers just because of not understanding a proper security concept.
 
2 members found this post helpful.
Old 07-09-2012, 04:00 AM   #13
FZappa
LQ Newbie
 
Registered: May 2012
Location: USA
Distribution: Slackware 14 xfce, LMDE xfce
Posts: 12

Original Poster
Rep: Reputation: Disabled
An apology To unSpawn For Being Rude

First of all, to unSpawn I am very sorry this smarta$$ post:
Quote:
Thanks unSpawn for your help. However, that doesn't answer my question. If a moderator cannot or will not help me then no one else will I think. Maybe you should delete this thread before it gets anymore off topic. I'll just go search another forum for some help
That was uncalled for and again, I apologize. You were just trying to help me.

To everyone else,thank you for your input as well as it helped alot.

To TobiSGD
Quote:
Nice that you found a solution for this.
Now may I kindly ask you to detach your machine from the Net?
I don't care that you run your machine as root, but as soon as you do this and use software that connects to the Net (like browser or e-mail client) I see your machine as potentially compromised. It would be nice if you don't bother us with Spam, DDOS attacks or brute-forcing our servers just because of not understanding a proper security concept.
You seem to think you know all about me. However, I do not spam, brute-force or DDOS. Hell, I do alot of work in windows so yea, I have a pretty good idea about security concepts. Ok, enough of that. Tobi, I understand your point even if it seemed snippy. At least to me it does.

Anyway, Thank You All

PS. Sorry to take so long to post.
 
1 members found this post helpful.
Old 07-09-2012, 06:12 AM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,582
Blog Entries: 2

Rep: Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037Reputation: 4037
Quote:
Originally Posted by FZappa View Post
You seem to think you know all about me. However, I do not spam, brute-force or DDOS.
I never said that you will do that. I said that it is not very difficult to compromise a machine that is run as root and opens itself to the net with using software like browsers or an email client, so that others can use your machine for something like that. May be you should keep in mind that this is not only annoying to other people, who are spammed, DDOSed or brute-forced from a zombie-computer, but that this also can have serious consequences for you. I can imagine that it would be pretty difficult to explain to the police that it is not your pirated content (or worse, not your childporn) that your computer is hosting to the net.

Quote:
I have a pretty good idea about security concepts.
Sorry, but your initial question proved you wrong. Just use su on the commandline to compile your kernels or install packages, it is not necessary at all to run the whole X environment as root and actually it is a very bad habit security wise.
 
1 members found this post helpful.
Old 07-09-2012, 07:56 AM   #15
descendant_command
Member
 
Registered: Mar 2012
Posts: 793

Rep: Reputation: 180Reputation: 180
and it voids your warranty
 
  


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
Given "sudo su" when asked for root password acschnabel Linux - Newbie 7 09-28-2011 10:11 PM
[SOLVED] Display the "lecture" when login as root with "su -" angel115 Linux - General 2 01-17-2011 04:57 AM
"Root has been mounted x times without checking. Check forced." Peterken Linux - Newbie 17 07-21-2010 07:48 AM
Getting bash to login as root and recognize commands like "vi" and "locate" ajaygoeslinux Linux - Software 4 05-04-2009 10:51 PM
Data transfer online is slow "at times" or "stops at times" Balarabay1 Suse/Novell 14 04-30-2006 10:00 AM


All times are GMT -5. The time now is 09:45 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