Solved

Asterisk Trixbox Root Password recovery

Posted on 2012-03-21
2
2,829 Views
Last Modified: 2012-03-22
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
Comment
Question by:RandallVillalobos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
ID: 37750957
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
 

Author Closing Comment

by:RandallVillalobos
ID: 37754393
Thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question