#Change Forgotten Login Password for Mint Linux
128 messages · Page 1 of 1 (latest)
can you get to grub menu?
I am unsure how to do that, the pc boots up into mint with the login screen and that's where I'm stuck at
try pressing esc or holding shift at boot
alright I will try this here shortly
I should still have the mint live usb around, I'll try to find that
once chrooted properly, use commandline commands to adjust the user password
do ls /home after chrooted to see old userhome folders if forgot exact username
got busy with work but I found my Mint live usb, so I'm attempting to work on this now, with the "chroot"
but also before the live usb... I tried hitting Esc during boot and got the grub command line to show
i think it's easier to do from live desktop.
was just sitting here changing the boot order for the usb yep
alright I am now on the live usb desktop, how do I get/run the chroot thing? I don't know what it is
you gotta read over the guide, and my condensed notes below it. i linked you.
.
oh duh... dont mind my brain.. 1sec
condensed notes start here: #1351963021819514930 message
the article goes into more fluff using parted and grep but u dont gotta. just lsblk -f to ID stuff.
gparted shows /dev/sda ext4 ... which is fine
mount /dev/xxxY /rescue - is it supposed to be mount /dev/ext4 /rescue ?
mount /dev/sda/ext4 r/escue
not sda the FULL dev name including partition number
just do lsblk -f like i said
get it @dapper tulip ?
sorry I was fixing discord to put this... I am terrible at linux, it's either just ext4 unless you meant the UUID also
damn
u have a partitionless sda
rarely see that
show sdb in gparted
this is why u should absolutely label partitions
i think that's the install
close gparted
open DISKS instead.
by name, from the start menu
then click partition 2 of sdb. then the play icon, then the blue link
press alt+prtscr keys to show a snap of the DISKS window on that exact partition selected and mounted
and again on the resulting file manager that opens
done
changed and labeled
do same for p1, but label it ESP
Then select sda in the disks app. hit play and the blue link, and show
(the resulting file manager)
close that file manager for a sec
in terminal , do sudo nemo
then in the resulting rootmode file manager, press ctrl-L for the address / location bar
and wipe it empty, and put /media/mint/1TB
and press enter and show
is it showing now stuff?
any folder named home or your real username within it?
it's completely empty - which as I recall is correct, that was merely storage drive that was never used
ok. click stop for it in Disks app after closing root nemo
this is what you must mount to /rescue and carry on with the steps in my condensed notes and/or guide
/dev/sdb2
mount /dev/sdb2 /rescue
okay I believe it worked... terminal is now... root@mint:/#
work thru all the chroot steps.. my condensed notes
you'll know you succeeded when u do ls /home and it shows ur real users folder not one called mint
at that point, u can do whatever commands to edit the password for the user
believe it's fixed now, rebooting out of live usb to test, seems like all was good using passwd
if u get in, then see if that 1 TB drive has permissions to create files on it from a regular file manager.
if not, use the gear menu in Disks app to 'take ownership'
no... the normal login didn't work and realized my dumbass did something dumb, I forgot to unmount things after...
I went back to the live usb and was going back through everything again... got back to... root@mint:/home/mint#... but ls /home shows "mint" instead of the correct username like before
u didnt type chroot /rescue then
thus ur new root isnt embodied yet
it should still have worked if u didnt unmount last time i think.
okay... yea that was it
u can do exit to leave the embodied root
now it's back to the correct user.... passwd again
ensure u use same region keyboard!!
or just use numeric digits
from the numeric row on keyboard
yea full english but using basic 1234 to be safe
so I do not need to unmount? just "exit" in the terminal?
welp give it a try
you could have also su - to new user
the new old user, which u just reset the password for. if works, then ur password works
eg. if old userid was goblin su - goblin
it will prompt for goblin's login password
still didn't work after all that somehow... I should have tried that "su - username"... maybe I still will
make sure u only use totally lowercase for username , and it is the proper username from months ago
it was part of a group of test PCs and it's username was simply hpz440new3 and the changed pw in the chroot was changed to just 1234
well, as long as u used lowercase during the password command
show the command u used here.
it was in that screenshot I put
u probably did it wrong then
didn't see a single mention of the actual username
brush up on that
it's there in the blue isn't it?
that's just the userhome's folder name (also the username) but u have to DICTATE IT in the password change command!
.
fair enough - I am no linux expert, nor a programmer
what u did just likely changed the live root (admin's) password for the duration of that live session prob.
went back to live usb... did it all again... used "passwd" correctly this time after googling what the correct way to to do it was... tested it with the "su - hpz440new3" as suggested... rebooted and finally successfully login to the machine with the new password
"if u get in, then see if that 1 TB drive has permissions to create files on it from a regular file manager.
if not, use the gear menu in Disks app to 'take ownership' " -- it does not have permission, and my only final question is... when Confirming Take Ownership, should "Enable recursive mode" be checked or no
okay only enable recursive for data drives
no, only take ownership of data drives
oh
anyways - thank you for the assistance, it is appreciated
considering this solved and done for now
one last thing
u may want to tune the data drive AND label it
do lsblk -o name,model,label,size,fstype,fssize,fsavail
tuning the data partition in this case, partitionless
to gain more space
I dunno, I think going to grub menu - advanced options - kernel (whatever is the latest) recovery mode - root shell, then typing
mount -o remount,rw /
passwd yourusername (your username is often the same as your home folder name, which you can see be typing ls /home)
reboot
is easier than this
Why is this happening? Even though the password I entered was correct.