LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-11-2015, 04:00 PM   #1
sushantasarkar
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
Exclamation Root password not working in Debian 8.1


I am new to Linux. I have installed Debian 8.1 in my computer. During installation I had enabled the root user and password and had given a six digit password. During installation I have selected not to create other users as I was planning to use only the root user. After installation, when I selected Debian from boot manager, it took me to linux in command mode and asked for user which I gave as root and password what I had set during installation. But the login failed. Then I reinstalled the Debian. This time I was extra careful for the root password and I also created another user. I had given different password for the root and the other user. This time Debian logged in using the other user and password. But failed to login as root and it corresponding password. Even when I logged in using other user, and modified some settings it asks for administrator password where I provide the root password. It doesn't works.


Please help. During installation I had selected region as India, language EN-IN, keyboard- american english. At one point of installation it said that it will install En-IN font and it was showing list of many other fonts that I may like to install (some UTF-8 type of things). I didnt select any from the list as the installation was already installing the required font.

Please help as the root password that was given during installation is not being accepted during login.

Last edited by sushantasarkar; 10-11-2015 at 04:03 PM. Reason: wrong spell
 
Old 10-11-2015, 06:10 PM   #2
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Hi, and welcome to LQ!

Most linux distros don't allow graphic root login (i.e. using the graphic environment as root). It's possible to modify some files to allow it, but it's VERY discouraged since it's easier to get your system messed up this way (you can delete system files by mistake, or if, for instance, you use the web browser as root, your system would be very vulnerable to crackers).

What I would suggest is to log in to a virtual terminal as root and create a regular user. After that, you will be able to log in as a regular user and perform administrative (root) tasks from a terminal window in the graphic environment. To create a new user, press ctrl-alt-F1 after the system has completely booted. Then, on the CLI log in prompt, type root, then press enter, then type the root password and press enter again. Then type adduser username (using the new user name) to create a new user and follow the prompts. Finally, press ctrl-alt-F7 to go back to the GUI and log in with the new user's credentials. Once you have logged in as the new user, you can run commands as root from a terminal window after logging in with the su command.
 
Old 10-12-2015, 05:51 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
You can try resetting your root password by pressing "e" with the Debian GRUB menu entry highlighted and adding this to the end of the line that starts with "linux":
Code:
init=/bin/bash
Then press <Ctrl>+x to boot to a passwordless root shell.

You may have to remount the root partition read-write:
Code:
source /etc/profile
mount -o remount,rw /
Then set the root password with:
Code:
passwd root
Then reboot.
 
Old 10-12-2015, 06:54 AM   #4
sushantasarkar
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by odiseo77 View Post
Hi, and welcome to LQ!

Most linux distros don't allow graphic root login (i.e. using the graphic environment as root). It's possible to modify some files to allow it, but it's VERY discouraged since it's easier to get your system messed up this way (you can delete system files by mistake, or if, for instance, you use the web browser as root, your system would be very vulnerable to crackers).

What I would suggest is to log in to a virtual terminal as root and create a regular user. After that, you will be able to log in as a regular user and perform administrative (root) tasks from a terminal window in the graphic environment. To create a new user, press ctrl-alt-F1 after the system has completely booted. Then, on the CLI log in prompt, type root, then press enter, then type the root password and press enter again. Then type adduser username (using the new user name) to create a new user and follow the prompts. Finally, press ctrl-alt-F7 to go back to the GUI and log in with the new user's credentials. Once you have logged in as the new user, you can run commands as root from a terminal window after logging in with the su command.
I have also mentioned that for the first time when I didnt created a user during installation and kept only root user it only displayed a command prompt and asked me to login. That was actually not a GUI.
 
Old 10-13-2015, 01:23 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by sushantasarkar View Post
I have also mentioned that for the first time when I didnt created a user during installation and kept only root user it only displayed a command prompt and asked me to login. That was actually not a GUI.
So, would you clarify the following?:

1: Do you currently have both a root and an user account?
2: Are you trying to do a graphic login as root from a login manager such as KDM, GDM, SDDM, XDM, etc? (Discouraged).
3: How are you trying to login as root?: From a virtual terminal (tty), from a terminal on a user account's GUI, etc.? What command(s), if any, are you using to attempt to login as root?

I'd also check if the keyboard layout used by the terminal matches the layout of the physical keyboard you're using: setxkbmap -query.
 
Old 10-13-2015, 01:32 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I thought the option was something like "enable root or go with an administrator user"?
The usual Debian installer will create a root and any other accounts you like but I know there is an installer which goes all "Ubuntu" and decides that a regular user with root permission to everything is, somehow, safer.
Most distributions will not enable the GUI if you log in as root.

---------- Post added 2015-10-13 at 19:32 ----------

I thought the option was something like "enable root or go with an administrator user"?
The usual Debian installer will create a root and any other accounts you like but I know there is an installer which goes all "Ubuntu" and decides that a regular user with root permission to everything is, somehow, safer.
Most distributions will not enable the GUI if you log in as root.
 
Old 12-29-2015, 01:19 AM   #7
sushantasarkar
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sushantasarkar View Post
I am new to Linux. I have installed Debian 8.1 in my computer. During installation I had enabled the root user and password and had given a six digit password. During installation I have selected not to create other users as I was planning to use only the root user. After installation, when I selected Debian from boot manager, it took me to linux in command mode and asked for user which I gave as root and password what I had set during installation. But the login failed. Then I reinstalled the Debian. This time I was extra careful for the root password and I also created another user. I had given different password for the root and the other user. This time Debian logged in using the other user and password. But failed to login as root and it corresponding password. Even when I logged in using other user, and modified some settings it asks for administrator password where I provide the root password. It doesn't works.


Please help. During installation I had selected region as India, language EN-IN, keyboard- american english. At one point of installation it said that it will install En-IN font and it was showing list of many other fonts that I may like to install (some UTF-8 type of things). I didnt select any from the list as the installation was already installing the required font.

Please help as the root password that was given during installation is not being accepted during login.

The problem was finally solved. The language or the keyboard should not be changed during the installation process.
 
Old 12-31-2015, 04:39 PM   #8
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 93

Rep: Reputation: 44
Good work...!
 
  


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
Debian - root Password stopped working stascrash Linux - Server 4 11-06-2010 07:38 AM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 02:02 AM
Root password not working neilthereildeil Linux - General 11 06-01-2006 12:33 PM
root password not working for su brenainn Linux - Security 1 10-08-2005 04:40 AM
root's password not working under X blind_chipmunk Linux - General 8 05-12-2005 10:38 AM

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

All times are GMT -5. The time now is 10: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
Open Source Consulting | Domain Registration