105
I F*cked up and I need help.
(lemm.ee)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Someone has already given you a guide on how to change the password via grub params, however that might not be necessary. It's important that when you ask these questions you provide the exact command you're using and the exact things you changed, what I assume happened is that you removed yourself from the wheel group (which in Mint might be listed as Admin privileges), this is important because the
sudo
command (unless you've customised it) only works for members of the wheel group. Then you said you tried to access the root via terminal and it told you you didn't have permissions, I'm 99% sure that you tried something withsudo
here, which will no longer work because your user is not an admin anymore.So are you screwed? Nope, you can access the root user without the need for
sudo
. Most people when they want to have a root shell usesudo su
, in that commandsu
is the actual part that lets you login as root (in factsu
is short for ~~Switch~~ Substitute User, and you can switch to any user using it. Fun factsudo
is a short for ~~Switch~~ Substitute User and DO, so that you can run things as root without needing to login as root). As you might have already guessed just runningsu
and putting the root password should work. Then why do people usesudo su
? Becausesudo su
will ask you for YOUR password, whereassu
asks you for the ROOT password (which in most servers is different, but most home computers is the same). You set the two of them when installing the system (in fact it's very likely that you ticked a checkbox that said something like "use the same password for the root account").Edit: The correct therm used in the su manual is Substitute not switch as someone mentioned in a reply.
Usually the root password isn't set at all, and the only way to use rootprivileges is sudo. But OP isn't screwed, they can use a Live CD and chroot