Solved

Asterisk Trixbox Root Password recovery

Posted on 2012-03-21
2
2,496 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
2 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
Comment Utility
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
Comment Utility
Thank you!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now