[SOLVED] Debian 6 new install: Can't log in as user or root
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Debian 6 new install: Can't log in as user or root
This is embarrassing to ask:
I installed Debian 6 yesterday. I always use the same user and root passwords when setting up a machine and then change them once I'm done, but neither work. Today I can't log in.
User error? Possibly, but I still don't get it.
Any way around this other than reinstalling? My hope was that I could force Debian to allow me to set up the user and root credentials again from the set up process, but I haven't been able to figure it out. I think I'm stuck but wanted to ask in case there were any suggestions.
I dont think so debian allow to set a root user password during installation. That does not mean that the root user does not exist. Root user is there but the password is set to some hash value.
What you have to do is you can login with the account that you have created during installation and then from that account do sudo passwd root.
I dont think so debian allow to set a root user password during installation. That does not mean that the root user does not exist. Root user is there but the password is set to some hash value.
What you have to do is you can login with the account that you have created during installation and then from that account do sudo passwd root.
Wrong. Unlike Ubuntu and its derivatives Debian uses a root account in a standard install, if you do not explicitly disable it at installation time.
@Landshark: When in Grub edit your kernel line so that it contains init=/bin/bash and then boot. You will get a commandline where you can change the password with the passwd-command.
Wrong. Unlike Ubuntu and its derivatives Debian uses a root account in a standard install, if you do not explicitly disable it at installation time.
I have performed the installation of Ubuntu 10.04 without disabling/changing any parameter but it didnt ask me the root password during the installation. Later when I tried to login using root it wasn't accepting the password (obviously because no root password was set). What I am trying to say here is that it uses the root account but the root password setting option you do not get during installation (This I have checked in Debian, Ubuntu, Linux Mint) it is set to some default hash value as no root password is a security breach.
Any of the flavours derived from Debian does not prompt use of root for regular daily task and that is the reason they give sudo access to the user account created during install. Once the installation is done and if you would like you can reset the root password.
{...}What I am trying to say here is that it uses the root account but the root password setting option you do not get during installation{...}
You're clueless. Debian DOES ask for root password in installation. Also Ubuntu but difference is - ubuntu uses same user password for root privileges(result is merged password and you won't see message "enter root password" during install) so it creates confusion.
What I am trying to say here is that it uses the root account but the root password setting option you do not get during installation (This I have checked in Debian, Ubuntu, Linux Mint) it is set to some default hash value as no root password is a security breach.
Wrong at least for Debian. Have a look at this installation tutorial with screenshots, the step where you have to input the root-password is the 11th picture from top.
Appending init=/bin/bash to the kernel line worked great and allowed me to access a shell as root.
But using passwd repeatedly resulted in the same error message no matter what I used for a password. After entering the verification, I got:
"Authentication token manipulation error." The password was therefore unchanged / I couldn't create the new one. (I even tried 1234 to make it as simple as possible.)
So then I attempted to use vi to edit /etc/shadow, hoping to delete the current root password and leave it blank. But the permissions for this file would not let me do this either. (Come to think of it, I should have tried to change the permissions, eh?)
Thank you guys for pointing that to me. I was in a impression unlike Linux Mint, Ubuntu, Debian does not prompt for the root password and I have heard this in some forum or on the internet.
Special thanks to TobiSGD for pointing out those screenshots.
newbie here. just installed debian 6.0.2 and i encountered exactly the same problem. just would like to ask a step by step procedure on how to do this one:
Quote:
Originally Posted by Landshark
Here's what I ran into:
Appending init=/bin/bash to the kernel line worked great and allowed me to access a shell as root.
landshark
and also, other procedures found on this thread that seem to have helped solve this problem.
thanks a lot
hi!
i was able to figure out how to edit grub parameters and append init=/bin/bash on the "linux..." line (i cannot seem to find the "kernel..." line as mentioned above) and i am prompted by a commandline but typing 'passwd' command would give me a COMMAND NOT FOUND error. should i type the full path of the command? i'm not sure where the command is located. by the way, i installed debian 6.0.2 and GNU Grub is version 1.98.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.