LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-19-2013, 06:14 PM   #1
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Cannot log in, or use, as root in new clean Debian Wheezy installs.


I have just done a series of totally clean (new /home and all) installs and using expert install allowed creation of a root password (not sudo) on 3 of the 4 installs. The installs where I allowed a root password so I could log in as root, either from a non gui cli or a root terminal, will not allow me to log in or do anything as root. The install (the one I am currently posting from) that I allow sudo acess, via expert install mode, works as it should.

Is this a known bug? Is there a work around that does not involve allowing sudo access?
 
Old 06-19-2013, 06:43 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Debian by design does not want you to login directly as root. It wants you to use sudo or authenticate as a normal user and use su - to switch. Does logging in as a normal user allow you to use su - and the password you set to switch to root?

You can do some searching on the debian forums for "no root login" and see all of the similar postings for this functionality.
 
Old 06-19-2013, 06:52 PM   #3
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Never had that problem, always been doing custom/expert install, even with several installs of Whezzy in different machines never had that problem. Now when you are setting the password there is an option where it ask if you want to allow login as root, say yes there.

Regards
 
Old 06-19-2013, 07:12 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Original Poster
Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by Kustom42 View Post
Debian by design does not want you to login directly as root.
I have always been able to use root in Debian.
Quote:
Originally Posted by Kustom42 View Post
It wants you to use sudo or authenticate as a normal user and use su - to switch.
I know, but this does not answer my question.
Quote:
Originally Posted by Kustom42 View Post
Does logging in as a normal user allow you to use su - and the password you set to switch to root?
No, I cannot use it at all. Thus the question is it a bug or something because it has always worked for me until now.
Quote:
Originally Posted by Kustom42 View Post
You can do some searching on the debian forums for "no root login" and see all of the similar postings for this functionality.
I know and I did Google but Google isn't as good as it likes to think it is. The posts on both Debian Forums seem to be about Squeeze not Wheezy and the solutions given didn't work either.
 
Old 06-19-2013, 07:15 PM   #5
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Original Poster
Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by ukiuki View Post
Never had that problem, always been doing custom/expert install, even with several installs of Whezzy in different machines never had that problem. Now when you are setting the password there is an option where it ask if you want to allow login as root, say yes there.

Regards
I did that. The page asks if you want shadow passwords, I say No, then asks for Root and I say Yes. I then type in the password I use for Root twice and continue the install. Then when I test the install to make sure everythign is working my root password will not let me login as root or use "su" or "su -".
 
Old 06-19-2013, 07:29 PM   #6
Hungry ghost
Senior Member
 
Registered: Dec 2004
Distribution: Debian Sid, OpenSUSE 42.3
Posts: 1,217

Rep: Reputation: Disabled
Have you checked if your keymap is OK? (The keyboard layout used during installation might be different to that of the installed system). Also, what is the exact error you get when trying to login as root? You can check the logs to see if there's something relevant there. If you're sure your keymap is the correct one, you can boot in recovery mode (or chroot your Debian install) and use passwd to change your root password.
 
1 members found this post helpful.
Old 06-19-2013, 08:56 PM   #7
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Original Poster
Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
I'm sure the keymap is ok. I'll boot into one of the 3 installs and get the error and post it up soon.

EDIT: In a terminal trying to get root access via su this is what I get

Quote:
uluru-gnome@michael-laptop:~$ su
Password:
su: Authentication failure
uluru-gnome@michael-laptop:~$
Regarding the keymap theory, If the keymap somehow changed wouldn't that apply to my "normal user" password as well?

Last edited by k3lt01; 06-19-2013 at 09:01 PM. Reason: Add information
 
Old 06-19-2013, 10:42 PM   #8
Hungry ghost
Senior Member
 
Registered: Dec 2004
Distribution: Debian Sid, OpenSUSE 42.3
Posts: 1,217

Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Regarding the keymap theory, If the keymap somehow changed wouldn't that apply to my "normal user" password as well?
Yes, I guess it would apply to your normal user as well, though it may depend on how different both keymaps are and on the passwords too (if for example you have a "qwerty" keyboard, but use an "azerty" keymap, some keys are the same, so a password like "erty123" would be the same in both keymaps).

Regarding your problem, a web search returned similar issues when /bin/su doesn't have the setuid bit set for some reason (take a look at this link for more info). In case it is set but you still have the same problem, maybe this will work (after booting in recovery mode or from a chroot terminal):

Code:
passwd root

Last edited by Hungry ghost; 06-19-2013 at 10:44 PM.
 
Old 06-19-2013, 11:11 PM   #9
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Original Poster
Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
I chrooted into the gnome system and changed the password. It now works as it should. I'll do some more research on it before I report a bug but my gut feeling is it is a bug. Each install was done from DVD1 multiarch built using jigdo. I'll see if the same thing happens using DebianLive.
 
Old 06-19-2013, 11:41 PM   #10
Hungry ghost
Senior Member
 
Registered: Dec 2004
Distribution: Debian Sid, OpenSUSE 42.3
Posts: 1,217

Rep: Reputation: Disabled
Yes, I guess it's quite possible it's a bug (it surprises me there are not related bug reports at bugs.debian.org already -- or at least I couldn't find one -- but who knows).

Cheers.
 
Old 06-20-2013, 07:40 AM   #11
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by k3lt01 View Post
I did that. The page asks if you want shadow passwords, I say No, then asks for Root and I say Yes. I then type in the password I use for Root twice and continue the install. Then when I test the install to make sure everythign is working my root password will not let me login as root or use "su" or "su -".
Try with shadow on, maybe there is where the bug lies.
 
Old 06-20-2013, 08:24 AM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Original Poster
Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by ukiuki View Post
Try with shadow on, maybe there is where the bug lies.
I did a few hours ago and it worked. Still want to test a LiveCD to see how that goes but haven't got a current one downloaded yet.
 
  


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
Does anyone have installed package lists for clean install Debian Wheezy? k3lt01 Debian 12 09-21-2012 07:19 PM
Clean Up Log - Search for Pattern in Log file and Output result bridrod Linux - Newbie 10 01-05-2010 10:49 AM
how do I clean my root dir out? i have no diskspace in it and i cant log in. ethereal27 Ubuntu 3 07-14-2006 11:48 PM
no video output after multiple clean installs (hardware conflict issue?) mentaltofu Ubuntu 6 12-12-2005 02:20 AM
HD won't boot after clean OS installs. Unfixable MBR? Guivre Linux - Hardware 1 04-22-2005 09:24 PM

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

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