0
I have tried every page I found on the web about resetting a username to something I could know (been 2 years since I've used the laptop with that Debian). Nowhere do people show the Debian GNU Grub window I get and nowhere do I find the description in the Grub listing that correspond to my version so I will ask you to help me:
my GNU GRUB version is 1.99-27+deb7u2
the text I get when I press the ''e'' button in the boot of GRUB where I can choose normal or recovery mode of Debian is the following (from the first line once I have pushed "e", it reads like this) :
setparams 'Debian GNU/Linux, with Linux 3.2.0-4-686pae'
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1_')
(there is a long line with the linux info once more.. is this the kernel line?
and more that i coul retype if needed)
... then there is that line at the end :
initrd "boot"initrd.img-3.2.0-4-686pae
(is this the kernel line?)
========
Literally ZERO guides on the web explain how to edit THIS Grub to add the line they tell us to add (init = /bin/bash
)... or to put 'single' without quotes at the end of the kernel line, nowhere is the word kernel there.
and every guide where people ask others to help with their Debian ends up sending them to a page talking about a Ubuntu or another version not a Debian one. So the text we see is nothing like the others.
I tried adding the init
line to my code I listed above, just after the setparams
line... and it did nothing.
If I boot in recovery mode, it asks me to put the login name in bash mode, and I still can't remember what I had put 2 years ago even if I see a login prompt in bash versus as in GUI.
This Debian has no documentation from the pages I looked up on the web that were talking about the same problem.
I retried and this time making sure that no " / " was located after the init='/bin/bash' ...
now it says :
'bash : cannot set terminal process group (-1) :
Inappropriate ioctl for device'
(sic : it does say ioctl, i'm not mispelling)
and
'bash : no job control in this shell'
and leaves me with a prompt :
root@(none):/#
Now i have officially done what i could and will have to wait for news!
Unless you've encrypted your laptop harddisk, a simpler way to reset the password is to boot from an USB stick (e.g. with a SystemRescueCD image), and just edit
– dirkt – 2017-08-12T07:29:30.547/etc/passwd
and/etc/shadow
. Alternatively, take the harddisk out, connect harddisk to another PC, then edit. Convincing grub to boot into/bin/bash
as init process sounds ... interesting.Method 2 Root Password Reset
– GAD3R – 2017-08-12T14:03:03.440