How to change the password for the user 'maint'?

How to change the password for the user ‘maint’ in the FreePBX administration section.

Thanks.

What version of AAh are u running

for the freepbx

you need to set up the amportal.conf from none to database

if going from AAh to new freepbx
need to edit httpd config and rem out the
folder protection…

The version for AAH is 2.8,

pls kindly advise me how to edit it. thx.

the file ‘amportal.conf’ not found.

do you use winscp or what??

nano
ctrl O to write out to file
ctrl X to close

the file amportal.conf is in /etc/

change Authtype=none to database

AUTHTYPE: authentication type to use for web admin

If type set to ‘database’, the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above

valid: none, database

AUTHTYPE=database

#Password protect /var/www/html/admin
#<Directory /var/www/html/admin>
#AuthType Basic
#AuthName “Restricted Area”
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user wwwadmin maint
#

#Password protect /var/www/html/maint
#<Directory /var/www/html/maint>
#AuthType Basic
#AuthName “Restricted Area”
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user maint
#

This will open the files close to where you will find these enteries…

nano +50 /etc/amportal.conf

nano +562 /etc/httpd/conf/httpd.conf

Hello bubba

I did edit the amportal.conf file, and changed the Authtype to database instead of none, however, i couldn’t log to the freePBX web portal, i used the mentioned usernames and password in the document (i.e AMPDBUSER=asteriskuser, password= amp109 )
still couldn’t manage to access.

I went back and change the Authtype to none and used maint account to access :(.

I’m using latest FreePBX 2.1.0 and [email protected] 2.8

is there anything i need to do in order to make it work?

regards

When you change to database use admin / admin

I used admin/admin unfortunately didn’t work, i retruned it back to none, in order to gain access with maint.

would you please elaborate further in order to fix it.

did you do this??
You must remove the entries below
or rem them out as I have them below

nano +562 /etc/httpd/conf/httpd.conf

#Password protect /var/www/html/admin
#<Directory /var/www/html/admin>
#AuthType Basic
#AuthName “Restricted Area”
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user wwwadmin maint
#

#Password protect /var/www/html/maint
#<Directory /var/www/html/maint>
#AuthType Basic
#AuthName “Restricted Area”
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user maint
#

I did rem out the required enteries in the httpd.conf file, and it worked fine, however, now i’m accessing FreeBPX with no authentication at all!

How can we secure it now? :slight_smile:

Please bear with me till i get done with it.

Make sure you have changed none to database

Look in the righthand corner does it say logout??

Finally it’s workinng.

Thanks alot bubba

I am having the same problem. I have commented out the permissions on the web directories and have changed authentication to database.

The problem is probably that I already had a different password set for maint instead of the default ‘password’.

With authentication set to database admin/admin does not work. I can log in using the asteriskuser username but can’t go anywhere with it.

With authentication set to none neither Setup or Tools has anything listed.