hi everyone
i wanted to enable administrator account authentication and i did it according to packt freepbx2.5 powerful telephony solution page222:
#sudo sed -i “s/AUTHTYPE=none/AUTHTYPE=database/” /etc/amportal.conf
#/usr/src/tbm-pbxxonfig-5.5.5.1/apply_config.sh
after that in freepbx on administrators i create an account name MasterAdmin with full access . now when i login to freepbx after swith to admin mode i receive authentication that i enter maint and password

afterward represent second authentication but any username or password is wrong. what shoud i do?thanks in advance

Hooray I found it in this link:
http://www.trixbox.org/forums/trixbox-forums/help/locked-out-freepbx
To use authtype=database:
-
Make sure you changed authtype to say AUTHTYPE=database
-
nano or vi /etc/trixbox/httpdconf/trixbox.conf
-
scroll down, make sure this section is rem’d out with #:
#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
-
ctrl + x to save or :wq and exit.
-
service httpd restart ( /etc/init.d/httpd restart)
-
login to freePBX with the username being admin and the password being admin. change this password, add/remove usernames by going to the Administrators section in freepbx
thank you for your kind of help ja133 