2013-10-12 21 views
0

我有一個EC2實例在安裝的閃存上運行CentOS和PBX。更改EC2上的「PBX閃存」密碼

我可以使用SSH連接到服務器。我想重置交換機的密碼,所以我跑:

passwd-master 

下列步驟後,我在最後得到一個錯誤:

Your manual password was accepted! 
passwd-master - 2.0.4 released on 082612 
CentOS release 6.3 (Final) - 64 Bit 
********************************************************************** 
* Now applying new password to maint/meetme/wwwadmin     * 
********************************************************************** 
Applying wwwadmin password 
Applying maint password 
Applying meetme password 
httpd service restarted to apply new passwords! 
passwd-master - 2.0.4 released on 082612 
CentOS release 6.3 (Final) - 64 Bit - ARI PATCH 
********************************************************************** 
* Now patching main.conf.php           * 
********************************************************************** 
Now verifying /var/www/html/recordings/includes/main.conf.php exists 
ERROR the file /var/www/html/recordings/includes/main.conf.php DOES NOT EXIST 
or is zero length. Unable to continue now exiting 

我發現我沒有權限訪問該文件夾:「/無功/ www/html等/錄音/包括/」

然後我試圖設置的密碼‘只有MAINT’,我又得到了一個最後的錯誤:

passwd-maint 
------------------------------------------- 
Set password for AMP web GUI and maint GUI 
User: maint 
------------------------------------------- 

New password: 
Re-type new password: 
Updating password for user maint 
htpasswd: unable to update file /usr/local/apache/passwd/wwwpasswd 

因爲我沒有訪問「wwwpasswd」(甚至沒有讀權限)

我明顯使用默認的EC2用戶登錄。

我的問題是,我該如何解決這個問題並更改密碼?

我試圖使用:sudo su命令 然後運行passwd-master,但它不起作用。 我使用sudo su命令後,它不知道passwd中主和passwd-MAINT了,我也得到

bash: passwd-master: command not found 

錯誤。

有任何建議嗎?

+0

嘗試以ec2-user身份運行:'sudo passwd-master'。它似乎確實需要以root用戶身份運行,但它並未在根用戶下的環境路徑中設置。 – datasage

+0

感謝您的回答,我已經嘗試過了,沒有找到work.says命令。我也嘗試將目錄更改爲passwd-master腳本存在的位置,但是我得到了同樣的錯誤。 – QProgrammer

+0

如果它不在路徑中,那麼您必須在腳本所在的目錄中像這樣運行它。「/ passwd-master」。 – datasage

回答

0

如果它不在路徑中,那麼您必須在腳本所在的目錄中像這樣運行./passwd-master。 - datasage

謝謝datasage。使用「./」解決了我的問題。我不知道這件事。