Difference between revisions of "Password Protect the Web Interface"

From hummy.tv Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
'''1. Change to the web directory on your Humax box'''
 
'''1. Change to the web directory on your Humax box'''
 
  
 
<span style="background:#FFFF80"> cd /mod/var/mongoose/html/ </span>
 
<span style="background:#FFFF80"> cd /mod/var/mongoose/html/ </span>
Line 22: Line 21:
  
 
By default the Humax's authentication domain is mydomain.com. So to add a user called 'admin' with the password 'pass' run the following command.
 
By default the Humax's authentication domain is mydomain.com. So to add a user called 'admin' with the password 'pass' run the following command.
 
  
 
<span style="background:#FFFF80"> /mnt/hd2/mod/sbin/mongoose -A ./.htpasswd mydomain.com admin pass </span>
 
<span style="background:#FFFF80"> /mnt/hd2/mod/sbin/mongoose -A ./.htpasswd mydomain.com admin pass </span>
Line 32: Line 30:
 
You can add multiple usernames and password to the .htpasswd file by repeating the above command changing admin & pass as needed.
 
You can add multiple usernames and password to the .htpasswd file by repeating the above command changing admin & pass as needed.
 
If this doesn't work or you need to remove the authentication request, this can be done using :
 
If this doesn't work or you need to remove the authentication request, this can be done using :
 
  
 
<span style="background:#FFFF80"> rm .htpasswd </span>
 
<span style="background:#FFFF80"> rm .htpasswd </span>
Line 38: Line 35:
  
 
I haven't tried this, BUT !! It appears you can change the authentication domain from mydomain.com by editing the mongoose.conf located in
 
I haven't tried this, BUT !! It appears you can change the authentication domain from mydomain.com by editing the mongoose.conf located in
 
  
 
<span style="background:#FFFF80"> /mnt/hd2/mod/etc </span>
 
<span style="background:#FFFF80"> /mnt/hd2/mod/etc </span>
Line 44: Line 40:
  
 
Adding the following should change the domain to localhost:
 
Adding the following should change the domain to localhost:
 
  
 
<span style="background:#FFFF80"> authentication_domain    localhost </span>
 
<span style="background:#FFFF80"> authentication_domain    localhost </span>
Line 50: Line 45:
  
 
If you do this you would need to change mydomain.com to localhost when you create your username and password. eg:
 
If you do this you would need to change mydomain.com to localhost when you create your username and password. eg:
 
  
 
<span style="background:#FFFF80"> /mnt/hd2/mod/sbin/mongoose -A ./.htpasswd localhost admin pass </span>
 
<span style="background:#FFFF80"> /mnt/hd2/mod/sbin/mongoose -A ./.htpasswd localhost admin pass </span>

Revision as of 17:04, 9 October 2011

Note :- This proceedure requires Telnet (Part of the Customised Software Package)

1. Change to the web directory on your Humax box

cd /mod/var/mongoose/html/


2. check no .htpasswd file already exists. ( just in case )

ls -alsh


If you already have a .htpasswd file you should see it listed.

cat .htpasswd


Will show you the contents of this file.

3. create the .htpasswd file

By default the Humax's authentication domain is mydomain.com. So to add a user called 'admin' with the password 'pass' run the following command.

/mnt/hd2/mod/sbin/mongoose -A ./.htpasswd mydomain.com admin pass


You can check the .htpasswd file has been created and view it's contents using the ls and cat commands above.

Now when you access you Humax via your browser you should be asked to enter the username and password for mydomain.com You can add multiple usernames and password to the .htpasswd file by repeating the above command changing admin & pass as needed. If this doesn't work or you need to remove the authentication request, this can be done using :

rm .htpasswd


I haven't tried this, BUT !! It appears you can change the authentication domain from mydomain.com by editing the mongoose.conf located in

/mnt/hd2/mod/etc


Adding the following should change the domain to localhost:

authentication_domain localhost


If you do this you would need to change mydomain.com to localhost when you create your username and password. eg:

/mnt/hd2/mod/sbin/mongoose -A ./.htpasswd localhost admin pass