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.
- Наука та технологія
love u bro, im french user and its working ty
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
You're welcome! I'm glad it helped!
very useful, thank you very much, greetings from Mexico
I’m glad it was helpful. Nice to see I have viewers from the South :)
hi, need some help, made the steps, but when try passwd root, it show "unknown username root"
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.
You're welcome! If you used exactly what was in quotes, change the dot between remount and rw to a comma. That *should* work.
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
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).
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.
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.
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.
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
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?
showwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww