You are not logged in.

#1 2009-08-13 12:18:19

sant527
Member
Registered: 2009-06-21
Posts: 273

root login incorrect

When I try to login: root
It says
login incorrect

I didnt set any password

How can login. I didnt add any user also

Offline

#2 2009-08-13 12:20:16

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: root login incorrect

more info needed , did you just install arch? , you should have set your root password there.

Solution
You could chroot into your install.

Offline

#3 2009-08-13 12:28:33

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: root login incorrect

I have just installed xorg and then installed the guest additions of virtual box and then restarted

I didnt kept any password for root till now

Previously when i login: root it used to login and go to command prompt

I am feeling that again I have to reinstall, which I dont want.

How to use chroot

can you give some more instructions

Offline

#4 2009-08-13 12:31:46

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: root login incorrect

If you didn't set a root password can't you login with the password field left empty?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2009-08-13 12:34:12

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: root login incorrect

loafer wrote:

If you didn't set a root password can't you login with the password field left empty?

I dosent ask for any password
after login: root
it gives login incorrect.

It doesnt ask for password

As I have mentioned I didnt create any login till now

But if I use login: xyz
then it asks for a password and when I enter it says login incorrect
for any other login other root it asks for password.

Last edited by sant527 (2009-08-13 12:37:05)

Offline

#6 2009-08-13 12:40:50

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: root login incorrect

I know it's a daft question but are you sure you're not still booting from the CD?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#7 2009-08-13 12:42:26

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: root login incorrect

Yes I have just booted from the CD

Then what to do

Offline

#8 2009-08-13 12:47:56

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: root login incorrect

no, did you disable the boot from cd in virtualbox ? and do you see grub ?

Offline

#9 2009-08-13 12:59:21

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: root login incorrect

Sorry I am not able to get you

If I disable the boot from CD in virtual box then how can I boot.

I have booted and mounted my
mount /dev/sda3 /mnt/hare

then nano /mnt/hare/etc/passwd

the root line looks like this

root:x:0:0:root:/root:/bin/bash

How to edit this line so that I can login back

Offline

#10 2009-08-13 13:24:19

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: root login incorrect

I found the solution but partially

I have diabled boot from CD in virtual box

When I started I entered in to grub and append at the end of the kernel line single, then booted by pressing b

I then able to set a new root password. I also added a new user tom and set the password.

Not I rebooted again.

but login: root
passwd: entered the correct passwd

it doesn login

rather
login: tom
passwd: enter passwd

It logins to tom
at command prompt
# su
passwd: entered root passwd
the root passwd works and the logins into root



The reason why I can only login to root to some other account is not known

It can be because I have updated initscripts and replaced the previous inittab file with the inittab.pacman

I dont know what inittab does

Can some one throw some light on this aspect

Offline

#11 2009-08-13 21:28:55

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: root login incorrect

i can confirm
i change to tty3 (ctrl alt F3) login root my password is incorrect but if  i su from user i get in
i found this out this am thought i was hacked for a moment
id play with this but im unable to now
am curious as to why this is though

Offline

#12 2009-08-14 07:42:03

figue
Member
Registered: 2007-12-16
Posts: 59

Re: root login incorrect

Check if /dev/tty* are correct. I posted similar topic few days ago:

http://bbs.archlinux.org/viewtopic.php? … 91#p598991

Last edited by figue (2009-08-14 07:42:33)

Offline

Board footer

Powered by FluxBB