I F*cked up and I need help.

Hey guys. I’m new to Linux and I’m running Linux Mint 21.2 Cinnamon. Yesterday I have f*cked up. I was testing things in users and geve myself standart priveledges insted of Admin ones I had from beggining and then restarted PC. I then tried log back into users tab and change myself back to Admin but even tho the password is correct It says that it is not. /So at this point there is only one user in PC who has standart privliedges and no Admin./ I then tried to access root via terminal and this time It said that I don’t have permision to do that. And this is where I’m at right now. Please help get back my admin privliedges.

Edit: Issue is fixed. I started GRUB and changed my password which fixed the whole issue. Once again big Thank you to everyone who gave me tips and also big thank you to the guy who started posting about rowing machines. You all wonderful.

GorbinOutOverHere,

you can say fuck on the internet but that’s all the help im qualified to give you unless you would like for me to extol the benefits of owning a rowing machine

MJRul3s,

I’m kinda used to people being sensitive even to the most minor of profanities but If it’s alright I won’t fucking hold back. I’m not intersted in rowing machines right now but thanks anyway.

GorbinOutOverHere,

I’m not intersted in rowing machines

Okay well they’ll still be there when you decide you wanna get jacked stalin-heart

giantfloppycock,

I’m here for the rowing machine benefits. Lay them on me, brother.

GorbinOutOverHere,

Oh man you should get a rowing machine, I got one for Christmas and have used it for like 180 days so far and let me tell you Im getting absolutely shredded. My beer belly has turned into shoulder and chest and bicep muscle and is now totally gone. My torso is like an inverted triangle, my lats are poppin, i got like dimples in my shoulders now above my armpit, shit’s wild.

The key is doing it like every day and turning up the resistance if it gets easy. Also stretch a lot and look up what you’re doing so you don’t hurt yourself

antrobus,

Not OP, just an admirer, but:

  1. If you have the cheese for a WaterRower, it’s quiet enough that you can haul ass in your studio apartment for 90 minutes without bothering your neighbors
  2. Rowing burns a fabulous amount of calories with the smallest possible footprint - you take up a rectangle of space for the entirety of your workout and at the end you’re still exhausted
  3. Full-body workout baby
  4. Naturally builds a functional-looking body, not too grotesque, very 3D
  5. As long as you keep it clean, no one will notice you’re not using your rowing machine - it’s pretty obvious when you’re not using the 32 kg kettlebell in the corner
  6. There are cool apps out there for rowing machines, but without the prohibitive expense of Peloton
giantfloppycock,

Hnnngggg yeah this is the shit I come here for. Now just need to toss out my couch to make room in my tiny ass studio for a rowing machine.

MJRul3s,

I know I said I didn’t need no rowing machine facts but I changed my mind xD Good summary.

library_napper,
@library_napper@monyet.cc avatar

Fucked

Nibodhika, (edited )

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 with sudo 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 use sudo su, in that command su is the actual part that lets you login as root (in fact su is short for Switch Substitute User, and you can switch to any user using it. Fun fact sudo 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 running su and putting the root password should work. Then why do people use sudo su? Because sudo su will ask you for YOUR password, whereas su 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.

Bene7rddso,

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

Ghoelian,

Huh, I always thought su stands for super user, but apparently it actually stands for substitute user (according to the manpage)

ardorhb,

You can do su <username> to change the user in the current shell. Afaik it just defaults to root if no user ist specified. Everytime you run su you actually do su root

That said I always thought that it stands for switch user so intereresting to know that it‘s substitute.

SpaceCadet,
@SpaceCadet@sopuli.xyz avatar

I don’t think “substitute user” is the original meaning, and it’s more like a retroactively applied acronym.

Looking at various old Unix manpages, it said various things in the past. In the HP-UX documentation it even lists three different variants in the same man page: “switch user”, “set user” and “superuser”.

“superuser” is probably the original meaning, because that’s what it says in the Unix Manual 1st edition (1971): man.cat-v.org/unix-1st/1/su


<span style="color:#323232;">NAME	su -- become privileged user
</span><span style="color:#323232;">SYNOPSIS	su password
</span><span style="color:#323232;">DESCRIPTION	su allows one to become the super--user, who has all sortsof marvelous powers. In order for su to do its magic, the user must pass as an argument a password. If the passwordis correct, su will execute the shell with the UID set to that of the super--user. To restore normal UID privileges,type an end--of--file to the super--user shell
</span>

I love Unix archeology :)

Ultra980,

Wouldn’t the password remain in the shell history? Or didn’t that exist back then?

SpaceCadet,
@SpaceCadet@sopuli.xyz avatar

It probably wasn’t such a concern back in 1971. I mean, even nowadays you still find programs where you can just add a login password to the command line.

Ultra980,

Wow, that’s terrible for security.

joyofpeanuts,

I have fucked up somewhat like you in the past and needed to repair my system. In Linux you can boot into runlevel 1, single-user mode, where you are effectively root and can remove the root password, the re-enter one after you boot in the usual runlevel again. See these links: debuntu.org/how-to-recover-root-password-under-li…debuntu.org/how-to-change-boot-runlevel-with-grub…www.geeksforgeeks.org/run-levels-linux/

MJRul3s,

Will try and give you feedback once I’m home. Thanks man.

yum13241,

Runlevels don’t exist on systemd. multi-user.target is what you want.

NaibofTabr,

I will also offer some help…

Next time you’re “testing things” set up a VM and test there. Don’t test things on your primary OS/place you can’t just wipe and start over.

jackpot,
@jackpot@lemmy.ml avatar

any foss vms out there?

Bene7rddso,

KVM/Qemu with Virt-Manager as GUI. There’s also Virtualbox, but it’s Oracle

MJRul3s,

That is a great advice. Thanks for the tip my man.

tubbadu,

Also setting up a periodic snapshot with tools like timeshift can save your life

MJRul3s,

Already tried that yesterday and my last back up is three days old. But timeshift needs password and when I entered it. The Timeshoft said that I don’t have permision to open it.

Reborn2966,

right it still require root privileges…

well if you boot from a usb key and you have a btrfs file system, you could manually restore the snapshot. this would bypass the password

axzxc1236,

If there is docker image for what you need, use docker image.

If not I would recommend systemd-nspawn, it’s chroot but can run systemd init, with efforts you can run GUI applications from it too., wiping that is just sudo rm -rf.

Zeppo,
@Zeppo@sh.itjust.works avatar

One of my favorites has always been “sudo passwd”, which works for some reason

MJRul3s,

I might try that later on.

ghulican,
MJRul3s,

Basically same method Saik0 posred later on. Will try that when I’m home and give my feedback. Thanks.

curioushom,

Are you trying the terminal commands with sudo? You could also try logging in as root user with the password you used during setup.

MJRul3s,

Yeah I already tried sudo root via terminal but when I entered the password It said I don’t have permision to do that. I can’t even change my password to something new in desktop. But I can try setup login once I’m back home.

Shikadi,

Did you try su -l?

MJRul3s,

Yeah man I tried. But I don’t have permision even tho I entered the right password.

curioushom,

You can reinstall the OS without overwriting your home partition or any other data partition. That’s always an option.

Zeppo,
@Zeppo@sh.itjust.works avatar

sudo should only ask for your user password. What do you mean “sudo root”? Do you mean “su”? That would require the root password.

SatanicNotMessianic,

It’s been a little while but he probably didn’t finish setting up sudo so there’s no sudo users file of approved users.

I would just try su.

Zeppo,
@Zeppo@sh.itjust.works avatar

I’ve had to set it up manually. May depend on the distro, I suppose. su won’t work without the root password.

SatanicNotMessianic,

When I’d set systems up, creating a password for the automatically created root account was one of the first steps in the process after setting up the basics. You could then set other accounts to have root privileges, or set up sudo to allow your personal account access via sudo, but even sudo acts as UID 0. If your setup didn’t do that, or if you set your account name up as UID 0, then you can always boot off of another source and mount the internal hd, right?

Zeppo,
@Zeppo@sh.itjust.works avatar

It’s a matter of distro and the installation process. I must note, I installed Linux dozens of times from 1999-2012 and not as much since then. Back then, while of course one set the root password, it didn’t ask about sudo privileges during installation of Debian, Ubuntu or Mandrake. And yes, that’s true, you can always boot from a different installation (such as a Live CD) except it is more complex if it is an encrypted filesystem.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines