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 05-28-2018, 04:39 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Root password rejected after installation.


Hi: I have just installed Debian Stretch on an Acer Aspire One Cloudbook, The installer gave me the option to let root to login. I chose it and wrote the password. But when, after the install was finished, I wanted to login as root, the password was rejected. Even a su - as regular user does not recognize the password. What am I to do?
 
Old 05-28-2018, 06:13 AM   #2
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
A simple web search returned a lot of how-to articles. Did you try any ?
Take a look here & here
 
Old 05-28-2018, 09:31 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,562
Blog Entries: 19

Rep: Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445
That's neat! I would probably have booted the installation disc or SystemRescue and corrected the password from there, but booting the installed system straight into bash is simpler.

I'm curious though to know what happened to the original password. You always have to give a password twice when setting it, so it's not likely to be a simple spelling error.
 
Old 05-28-2018, 11:23 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,487

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
The installer most likely prompted you to create a root password, as said above, enter it twice to confirm. Are you trying to login to a GUI in Debian? From what I understand (not being a Debian user) that isn't allowed in a default install and a user needs to set it up after the install. Clarify the situation please.

https://economictheoryblog.com/2017/...n-in-debian-9/
 
1 members found this post helpful.
Old 05-28-2018, 01:00 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
probably a keyboard layout problem. I guess.
 
Old 05-28-2018, 03:14 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by yancek View Post
The installer most likely prompted you to create a root password, as said above, enter it twice to confirm. Are you trying to login to a GUI in Debian? From what I understand (not being a Debian user) that isn't allowed in a default install and a user needs to set it up after the install. Clarify the situation please.

https://economictheoryblog.com/2017/...n-in-debian-9/
It's simple. Just after the install I booted and then I am in the GUI. If you want a text console (/dev/ttyN) in Debian Stretch you must press Ctrl-Alt-<function key>. Here if I want to login as root I can't. If I go to a text console and login as root, the password is rejected. Typing su - and giving root's password has the same result. In the GUI, opening a terminal an typing su - is just the same. So, no way to do anything as root, for the sudo command is not installed and, if it were, it needs root's intervention to be operational.
 
Old 05-28-2018, 08:32 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
These days, most distros will not allow you to log in from the display manager, that is, log into the GUI environment, as root.

It's been several months since I installed Debian, but, as I recall, after the root password is created, it prompts you to create a user.for creation of a user.
 
Old 05-29-2018, 01:48 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
did you try to reset that password already?
 
Old 05-29-2018, 03:44 AM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Yes, I boot with init=/bin/bash and the other thing (i do not remember now). Then changed the password (passwd command). As a result, exactly the same behavior. Thinking it had to do with keyboard configuration, as I had skipped, when installing Stretch, the keyboard configuration, I reinstalled and went over the keyboard configuration, choosing the first item (something like american keyboard). My machine happens to be an American one, with the classical keyboard keys distribution. I even altered the password, which made use of a special character, and changed it to a number. But still same behavior.

I think it may be a bug in the installer, and I intend to report it. Perhaps using another version of the same installer, either an older or a newer one, the problem could be solved.
 
Old 05-29-2018, 06:58 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,789

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
I don't think, but probably....
I would first try a simple password, which contains no tricky key, like ppaa22wwqqgg
 
  


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
my password and username are rejected? kiruja Linux - Newbie 2 06-12-2011 02:23 PM
New system won't allow root after installation - using correct password and "root" kn2y Linux - Newbie 6 11-07-2008 07:52 PM
SuSE93 Root password rejected from normal user mode (No Sudo, No YaST) Peacepunk SUSE / openSUSE 2 02-11-2007 06:34 PM
Installation Root and Welcome Screen Password JujitsuFreak Linux - Newbie 4 07-10-2005 10:25 AM
Installation Root and Welcome Screen Password JujitsuFreak Fedora 13 06-13-2005 05:49 AM

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

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