i cant access to my administrator account cause i deleted my password

Asked by tofarr

 i tryed the reeboot and in thiar i got when i put in root chgpasswd sumthing about cannot lock /etc/group

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nautilus 1:3.2.1-0ubuntu3.1
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Mon Feb 13 02:41:48 2012
ExecutablePath: /usr/bin/nautilus
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
SourcePackage: nautilus
UpgradeStatus: Upgraded to oneiric on 2011-10-25 (111 days ago)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
tofarr
Solved:
Last query:
Last reply:
Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug. There is also a vibrant support community available at http://askubuntu.com and you might consider asking your question there.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Hold shift at boot and select recovery mode, then select root. You can now run:

passwd name

And switch name for your actual username, you can then set your password and run:

reboot You can now log in as your username and new password.

Revision history for this message
tofarr (toddfarrow) said :
#3

ok i got it but to do the fix it was not geting fixst in the holding down the shift kee, i got it repaired in recovery be for i log on i went and chekt the recovery kee and then i found the passwd chang comand and that took it thair thanks .