Reset the Root Password in FreePBX and RHEL-based Linux distros

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • At some point we've all forgotten the root password on a Linux system. Here's how to reset it if you're using CentOS, FreePBX, Fedora, or any other RHEL-based distro.
  • Наука та технологія

КОМЕНТАРІ • 16

  • @BrotherOfLegend
    @BrotherOfLegend 2 роки тому +1

    love u bro, im french user and its working ty

  • @ChadAmI80
    @ChadAmI80 3 роки тому

    You my friend are amazing! Thank you for your help in getting me root access to my second hand Sangoma PBXACT appliance that I bought on eBay. Previous owner apparently did enable selinux. My kernel config was slightly different and I had to remove console=ttyS0,115200 LANG=en_US.UTF-8 Once did that and my line was ending with ifnames=0 I was able to append rd.break and restart and it worked. It looks like the previous owner had done some customization to the linux system. Either way, your steps worked once I created the .autorelabel file

  • @gustavotobias7681
    @gustavotobias7681 2 роки тому

    very useful, thank you very much, greetings from Mexico

    • @EddieJennings
      @EddieJennings  2 роки тому

      I’m glad it was helpful. Nice to see I have viewers from the South :)

  • @fabianoheringer
    @fabianoheringer 2 роки тому +1

    hi, need some help, made the steps, but when try passwd root, it show "unknown username root"

  • @guilhermegomes5252
    @guilhermegomes5252 3 роки тому

    wow, thanks for the post, it helped me a lot.
    in my case the command "mount -o remount.rw sysroot" didn't work, so I changed in "grud" to "sysroot" to start in rw.

    • @EddieJennings
      @EddieJennings  3 роки тому

      You're welcome! If you used exactly what was in quotes, change the dot between remount and rw to a comma. That *should* work.

  • @JessieMHadaller
    @JessieMHadaller 2 роки тому

    It’s telling me that it’s already mounted…
    /dev/mapper/SangomaVG-root is already mounted or /sysroot busy
    /dev/mapper/SangomaVG-root is already mounted on /sysroot

  • @inkrollo936
    @inkrollo936 Рік тому

    If anyone is having Selinux problems with this, after rd.break, add [space] enforcing=0, then change the value back to 1 after boot(setenforce 1).

    • @EddieJennings
      @EddieJennings  Рік тому +1

      I've seen some folks complain about this. I haven't had to set enforcing as a kernel parameter on RHEL, and it's been a while since I've run FreePBX, so perhaps, the FreePBX flavor of CentOS has changed.

  • @alexlu9101
    @alexlu9101 5 років тому +1

    Hello Eddie, I have one question abut resetting root password, what did I learn from some books about RHCSA. when we reset password, we need to use rd.break=enforcing , not just rd.break. What is the default behavior without "enforcing", or just the same.

    • @EddieJennings
      @EddieJennings  5 років тому

      I have never used “enforcing”. My hunch is that it has to do with SELinux. I’ll do some tests and show the results in a future video.

    • @EddieJennings
      @EddieJennings  4 роки тому +1

      I finally got around to answering your question. See the below video. Thanks again for being a subscriber!
      ua-cam.com/video/ugJp0glv8_I/v-deo.html

    • @traderpete007
      @traderpete007 3 роки тому

      When I try this on a pbxact appliance running the Sangoma Linux after adding rd.break and control-x it reboots and hangs at probing EDD edd=off to disable ok. And sits for minutes till it reboots and goes into a endless loop from hell. Any ideas?

  • @adamiltondasilvaalves1220
    @adamiltondasilvaalves1220 Рік тому

    showwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww