Warning: Use of undefined constant result - assumed 'result' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 36

Warning: Use of undefined constant pagename - assumed 'pagename' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 46

Warning: Use of undefined constant pagename - assumed 'pagename' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 52

Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 54

Warning: Use of undefined constant count - assumed 'count' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 58

Warning: Use of undefined constant debug - assumed 'debug' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/sqlfunctions.php on line 184

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 449

Warning: Use of undefined constant pw - assumed 'pw' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/dynamic.php on line 515

Warning: Use of undefined constant result - assumed 'result' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/menu.php on line 3

Warning: Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP) in /data01/hpcsolut/public_html/howtofix/search.php on line 3
Change user password Ubuntu
How to fix anything

Search for :



Change user password Ubuntu

Start your netbook, laptop or pc with a install Ubuntu CD or Memory USB Drive

Select option to try Ubuntu

Once booted go into the Terminal
CTRL+ALT+T

Some or all of the commands below made need to be carried out as root using sudo:-

mkdir p
mount -t auto {DRIVETOMOUNT} p
e.g. mount -t auto /dev/sda2 p

{Then chroot to that mounted partition}
chroot p

cd /boot/grub
chmod 777 menu.lst

{use gedit ot vi to edit menu.lst}


{comment out hidden}
# hidden

{set timeout value in seconds}
timeout 30

{exit from editor}

update-grub
{to reboot type}
reboot


During Reboot Select recovery mode

This should Logon to root

type passwd {username}
e.g passwd peter

{Enter the new password}

reboot and use the new password
    IP