[Tfug] HELP!!! Username/password issue in Ubuntu...time critical...

Bowie J. Poag bpoag at comcast.net
Sun Jul 29 20:14:18 MST 2007


At the grub screen, add the following parameter:

init=/bin/bash

This will boot the kernel and drop you immediately to a bash prompt.

 From there:

mount -o remount /

This will allow you to write to files in /, in which /etc/passwd 
probably resides. From there, edit /etc/passwd so that the password 
field is removed. It should go from something like:

bowie:f26lkjh62lkjh6k6jl:500:500:Bowie J. Poag:/home/bowie:/bin/bash

To:

bowie::500:500:Bowie J. Poag:/home/bowie:/bin/bash


 From there, write, sync, reboot. Just hit enter when it asks for her 
password, and set it once she's logged in.

Cheers,
Bowie




Jim March wrote:
> I'm helping a friend convert.  Everything is going great, I'm showing
> her the finished system (Feisty) all tuned up, and it turns out I've
> mis-spelled her name (ann) in creating her username.
>
> It has to be "anne".
>
> Her password was "[something]ann".
>
> So I go into user and groups, change "ann" to "anne" and add an "e" to
> the end of her password.  Close out, shutdown, bring it up...and it is
> NOT letting me log in.  As anything.
>
> Fuuuuck.
>
> The good news: with the liveboot CD I've got access to her hard disk.
> At the command line I guess, how do I fix this, stat?
>
> :(
>
> Thanks!
>
> Jim
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>   





More information about the tfug mailing list