forgot password

Asked by sadasivam

i am using upuntu 10.04 . i can get the recovery mode of upuntu. i am also having kupuntu. but i cannot access kupuntu using recovery mode. the problem is - i cannot login to kupuntu because i forgot the password. please help me .

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
sadasivam
Solved:
Last query:
Last reply:
Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#1

To reset your password see this.

http://www.psychocats.net/ubuntu/resetpassword

Revision history for this message
sadasivam (srisadasivam) said :
#2

my problem is not solved

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#3

Why?
Please give more details.

Revision history for this message
sadasivam (srisadasivam) said :
#4

my grub contains upuntu, upuntu recovery mode, memtest1, memtest2, kupuntu.
there is no option for kupuntu recovery mode.

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#5

you have ubuntu and kubuntu separeted in different partitions?

for example you have 2 partitions with 2 /home directories?

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#6

if you cannot answer please with your working account type the following and give for each the result.

1) sudo fdisk -lu
2) mount

so to examine your installation.

Revision history for this message
sadasivam (srisadasivam) said :
#7

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000c99a

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 39064547 19531250 83 Linux
/dev/sda2 39065598 488390655 224662529 5 Extended
/dev/sda5 97667072 273342563 87837746 b W95 FAT32
/dev/sda6 273346038 292977404 9815683+ b W95 FAT32
/dev/sda7 292980736 294004735 512000 83 Linux
/dev/sda8 294006784 488390655 97191936 8e Linux LVM
/dev/sda9 39065600 48830463 4882432 82 Linux swap / Solaris
/dev/sda10 48832512 97658879 24413184 83 Linux

/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/sadasivams/.gvfs type fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,user=sadasivams)
/dev/sr0 on /media/BSNL 3G LW272 type iso9660
(ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)

On Tue, Nov 9, 2010 at 1:30 PM, demosthenesk <
<email address hidden>> wrote:

> Your question #132849 on sudo in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/sudo/+question/132849
>
> demosthenesk posted a new comment:
> if you cannot answer please with your working account type the following
> and give for each the result.
>
> 1) sudo fdisk -lu
> 2) mount
>
> so to examine your installation.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
sadasivam (srisadasivam) said :
#8

sda10 is having kupuntu. (i am also having fedora. i cannot get fedora after installing upuntu. it is a seperate story. leave it now.)

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#9

ok make a temp folder for example disk10

1) mkdir disk10

2) sudo mount /dev/sda10 disk10

 in disk10 normally you will have a etc folder and a shadow file

3) sudo nano -B disk10/etc/shadow

This will open the disk10/etc/shadow file (the one that contains all the passwords) in a text editor called Nano.

Once you have it open, find the appropriate line for the account in question. It'll look something like this:

yourusername:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::

where "yourusername" will be your user in example

Change the second part to match this second part:

yourusername:U6aMy0wojraho:13721:0:99999:7:::

the "U6aMy0wojraho" hash is the hash for blank password.

in this way you change the password for your user with a blank password.

Next reboot to kubuntu and you can login with blank password.
Set a new password to your user after succesfull login.

Hope to help.

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#10

if you dont like nano use gedit

gksudo gedit disk10/etc/shadow

and of course save the file. Forgot to mention it.

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#11

in line
yourusername:$1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721:0:99999:7:::

each part is separated with :

yourusername : $1$2TUdk8Z0$tb2Fn6Idgo8dq9EgYv4xZ0:13721 : 0:99999:7:::

you need to change only the hash part, dont change the rest.

Also you can copy the disk10/etc/shadow file as disk10/etc/shadow.bak before edit it.

Revision history for this message
sadasivam (srisadasivam) said :
#12

problem solved. thanks a lot, demosthenesk.

Revision history for this message
sadasivam (srisadasivam) said :
#13

once again i am thanking you

Revision history for this message
Demosthenes Koptsis (demosthenesk) said :
#14

i am happy to help you. Have a nice day!