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.

  • joyofpeanuts@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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: https://www.debuntu.org/how-to-recover-root-password-under-linux-with-single-user-mode/ https://www.debuntu.org/how-to-change-boot-runlevel-with-grub2/ https://www.geeksforgeeks.org/run-levels-linux/

      • antrobus@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        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@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          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@lemm.eeOP
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

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

  • curioushom@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    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@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      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.

      • Zeppo@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year ago

        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@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          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@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

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

            • SatanicNotMessianic@lemmy.ml
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              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@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                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.

    • timespace@lemmy.ninja
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      Wait wtf? You can just reset root password that easy? What’s even the point of having a password, if all of your data and info is so easily accessed if someone gets physical hold of the machine. I guess so software/remote hackers can’t get your stuff, but still. This seems wild to me, I dunno.

      New to Linux so I’m sorry if I’m being ignorant, but it does seem crazy you can get access to a machine without the password.

      Edit: Thanks for all the comments below! I guess I’ve been spoiled by BitLocker in Windows being enabled by default and not having to think of disk encryption. Appreciate everyone’s time and responses!

      • NaN@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Linux can do it to Windows machines too. If it’s not encrypted, USB drive is all it takes.

        If it’s not encrypted, a live usb can read all the data on any machine anyway.

      • Wangus@startrek.websiteB
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        There needs to be some mechanism to recover your machine should this happen. It’s not that much more difficult to do it on a windows machine either.

        The truth of the matter is is if somebody has physical access to your machine it’s not your machine anymore. They can pull out the hard drive and plug it into a machine that they have a password for and read from it if it’s not encrypted. So on and so forth.

        • Resolved3874@lemdro.id
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Which is why you never throw away a computer with the drives in it and you never throw drives away without physically destroying them. Don’t give other people the chance to see your weird shit.