LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-25-2012, 08:25 PM   #1
zeelog
Member
 
Registered: Jan 2008
Posts: 139

Rep: Reputation: 1
debian6 trouble logging on as root


I must be doing something wrong. This is my first Debian install.
When I try to log on as root, Debian 6 gives the message that
the pass word is invalid. I know the root pass word. I installed
the system. So I eventually give up and log on as an ordinary
user. Then I start a terminal and using su, log on as root using
the very same root pass word. This works. Well, thinks I, we
are now getting somewhere. But I'm wrong. When I try to change
user to root, the root pass word is rejected as invalid.
What can I do to log on as root at bootup in Debian 6 ?
There is no security issue. This particular machine is not on
the internet and I'm the only one who uses it.
 
Old 07-25-2012, 11:14 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

by default X login/display managers are configured to not allow root login in Debian. You should be able to log in to a console as root.

If you really want to log into X as root, you will need to configure your display manager. Eg edit /etc/gdm/gdm.conf

Note that running a full X session as root is generally a *very* bad idea.

Evo2.
 
Old 07-26-2012, 04:15 AM   #3
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 zeelog View Post
So I eventually give up and log on as an ordinary
user. Then I start a terminal and using su, log on as root using
the very same root pass word. This works.
Which is the correct way to do it. There is no reason to log in to an X session as root.
 
Old 10-12-2012, 09:39 AM   #4
zeelog
Member
 
Registered: Jan 2008
Posts: 139

Original Poster
Rep: Reputation: 1
debian6 trouble logging on as root

Well, OK. I guess root is not for me on Debian.
Them Debian experts know best. After all, who am
I to want to be root ? Just the guy who owns the
computer and installed the OS, pays for the Internet
cable, runs the computer... A nobody. So be it.
This thread is solved.
 
Old 10-12-2012, 09:50 AM   #5
Fred-1.2.13
Member
 
Registered: Jan 2006
Location: Midwest USA
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124

Rep: Reputation: 59
Quote:
Originally Posted by zeelog View Post
Well, OK. I guess root is not for me on Debian.
Them Debian experts know best. After all, who am
I to want to be root ? Just the guy who owns the
computer and installed the OS, pays for the Internet
cable, runs the computer... A nobody. So be it.
This thread is solved.
My first comment is to switch to Slackware! root access out of the box! (BTW, I like Debian and I am using Debian right now on this particular laptop)

In Debian do this:

Edit this file as root: /etc/pam.d/gdm3

Comment out this line with a hash:
#auth required pam_succeed_if.so user != root quiet_success

You can now select Other User at the GUI login and login as root. (might need to reboot first)

You can also switch to a console (Ctrl+Alt+F1) kill gdm and then run "startx" as root.

Last edited by Fred-1.2.13; 10-12-2012 at 06:38 PM.
 
Old 10-14-2012, 07:04 AM   #6
el chapulín
Member
 
Registered: Sep 2012
Posts: 75

Rep: Reputation: 19
Quote:
Originally Posted by zeelog View Post
Well, OK. I guess root is not for me on Debian.
Correct.
Quote:
Originally Posted by zeelog View Post
Them Debian experts know best.
Correct again.
Quote:
Originally Posted by zeelog View Post
After all, who am I to want to be root ? Just the guy who owns the computer and installed the OS, pays for the Internet cable, runs the computer... A nobody. So be it. This thread is solved.
To run a command as root
Code:
$ su
enter the root password, enter the commands, then:
Code:
# exit
To run a gui application as root
Code:
$ gksu <name of gui application>
enter the root password.

Last edited by el chapulín; 10-14-2012 at 07:05 AM.
 
Old 10-16-2012, 12:15 PM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by zeelog View Post
Well, OK. I guess root is not for me on Debian.
Them Debian experts know best. After all, who am
I to want to be root ? Just the guy who owns the
computer and installed the OS, pays for the Internet
cable, runs the computer... A nobody. So be it.
This thread is solved.
No one says you can't do it. It's simply not recommended to run an entire desktop under root. It's not just a Debian thing either. There are apps that will warn you or even refuse to run as root. Even M$ has finally figured this out.
 
  


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
having trouble logging in as the root user thebiggiantmouse Linux - Newbie 3 06-29-2006 09:15 AM
having trouble logging in paul62 Slackware 2 03-28-2004 06:52 AM
GNOME/XFree86 trouble logging in with /root janisj Linux - Newbie 2 07-07-2003 02:09 PM
Logging out of X and into trouble LonnieB Linux - General 2 07-05-2003 07:31 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

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

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