[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3348
  • Last Modified:

Asterisk Trixbox Root Password recovery

Experts,

We have a trixbox pbx server that has been sitting in our office that no one has access to.

From what I have read once that I have root access I can change the Trixbox Gui password as well.

So my question is.  Any ideas on how I can recover the root password for my Trixbox?


Thanks,
R
0
RandallVillalobos
Asked:
RandallVillalobos
1 Solution
 
MysidiaCommented:
On a Trixbox system the root password is stored as a one-way crypto hash, so there's really no way to directly view the existing password, only to reset the password to something new.

The root password reset procedure is the same as CentOS5
http://www.experts-exchange.com/OS/Linux/Distributions/Q_27083030.html

Basically,  stop the system at the boot menu
hit 'e' to Edit  the entry

Go down to edit the second line that starts with 'kernel'
hit 'e' to Edit the line

add  init=/bin/sh
to the end of the line
press enter
press 'b' for boot

after the system boots
use the commands
# mount -o remount,rw /
# passwd root

Type new password.

# mount -o remount,ro /

Reboot system.


Login as root

To change the web interface password for the 'maint' user

# passwd-maint
0
 
RandallVillalobosAuthor Commented:
Thank you!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now