On Thu 19 Nov 2015 at 00:12:31 +0100, Dan wrote:

> On Wed, Nov 18, 2015 at 8:42 PM, Brian <a...@cityscape.co.uk> wrote:
> > On Wed 18 Nov 2015 at 20:05:38 +0100, Dan wrote:
> >
> >> If a wrong password is used many times to log as root, does the root
> >> account gets locked?
> >
> > No.
> >
> >> I was in a hurry and introduced a wrong password for root a few times
> >> and now I can not log as root.
> >>
> >> I think that I'm using the right password (although I can not be sure
> >> 100%). I checked the modification date of the files passwd and shawdow
> >> and it seems that the root password has not been modified. I guess
> >> that if somebody changed the password I should see it in the date of
> >> shadow.
> >
> > Who is this "someone"? Have you given him access to your machine?
> >
> 
> Thanks for your answer. I didn't give access to anybody. I just
> wondered if the machine has been hacked. I doubted it, but I would
> like to understand what happened and why I can not use my root
> password anymore.

Reset the root password as follows:

1. At the GRUB menu type 'e'.

2. Put "init=/bin/bash" at the end of the line beginning with "linux".

3. Press F10.

4. Mount the root partition read/write: mount -n -o remount,rw /

5. Type 'passwd'.

6. Reboot with CTL-ALT-DEL.

Reply via email to