Locked out of Admin log in
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
Hello,
I mis-placed my log in info on my brand new machine relegating me to using the guest log in side of the house
These were the instructions I was given in order to reset my user name and password: Press e at GRUB menu entry. Find the line that says linux then enter in: init=/bin/bash and press F10 at the end to boot into root direct shell. Enter passwd yourusername. Then reboot and enter in youregards new password
The problem I'm having is, which 'linux' line do I type this into? I've tried entering init=/bin/bash without " " on both to no avail.
Any tips?
Shifting into or after boot is not bringing me to that recovery mode menu. This may be a noob thing to say but my Trisquel 7 interface looks nothing like the Ubuntu examples.
Still not too sure where to go from here.
Trisquel makes it uselessly hard to recover a broken system. Indeed, a random GRUB password is set when you install Trisquel. Without it, you cannot directly boot in a root terminal.
First, you need to know what is your root filesystem, i.e., what partition has the / mount point. According to the 'lsblk' command (to be executed in a terminal of the installed system), mine is "sda2":
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 8G 0 part
│ └─cryptswap1 (dm-0) 252:0 0 8G 0 crypt [SWAP]
├─sda2 8:2 0 24G 0 part /
├─sda3 8:3 0 433,8G 0 part /home
└─sda4 8:4 0 7M 0 part
sr0 11:0 1 1024M 0 rom
Then, you need to boot a Live system. For instance the ISO you used to install Trisquel in the first place. If you have no such Live system, create one: https://trisquel.info/en/wiki/how-create-liveusb
Once in the Live system, open a terminal and 'mount' the root filesystem of the installed system (/dev/sda2 in my case) in /mnt;
$ sudo mount /dev/sda2 /mnt
Make /mnt the root of the file hierarchy:
$ sudo chroot /mnt
You now have the equivalent of a root terminal in the installed system. To change the password of a user whose login is "jjalderson7":
# passwd jjalderson7
If you only remember the user name (written on the graphical login screen), 'grep' it in /etc/passwd (substitute "user name" with the actual user name or part of it):
# grep 'user name' /etc/passwd
The login is before the first ":".
Once you will have a working administrative user account, I can explain you how to get rid of the useless GRUB password and, if you wish, how to have recovery entries in the GRUB menu. It actually is pretty is easy (comment the two lines in /etc/grub.d/01_PASSWORD, edit /etc/default/grub to your desires, and execute 'sudo update-grub'). See https://www.gnu.org/software/grub/manual/html_node/Simple-configuration.html#Simple-configuration if you want to discover by yourself what you can edit in /etc/default/grub.
So, right now, when I'm at the main screen in GRUB I enter "c" to go to the command-line. Type "unset superusers" press enter, ESC out, press enter, now I'm at the screen where I can either select Trisquel GNU Linux or Advanced options. At this point I press "e" instead of the username and password prompt being disabled it still pops up.
Any ideas why?
The username and the password you are referring to are GRUB's. The username is "grub" but you do not know the password. Trisquel's installer randomly generated it. Well, you can read it if you have administrative permissions (but you do not know the password of the only administrative user) or from a Live system (what clearly shows that GRUB's password is no security). You can also use the Live system to directly give the administrative user a new password. That is what I suggested you in https://trisquel.info/forum/locked-out-admin-log#comment-105213
Do it. I can then help you with removing GRUB's password. The "e" key that other users have suggested you to use presupposes you removed GRUB's password (or that you know it). It is to be pressed on an entry of the "Advanced options", that you currently cannot access.
- Vous devez vous identifier ou créer un compte pour écrire des commentaires