Difference between revisions of "Password Protect the Web Interface"

From hummy.tv Wiki
Jump to: navigation, search
Line 1: Line 1:
You can password protect the Web Interface by following these instructions;
+
Note :- This proceedure requires <span style="background:#FFFF80"> Telnet </span>(Part of the Customised Software Package)
  
[http://hummy.tv/forum/threads/working-password-protecting-the-web-interface.405/ Forum Topic]
+
'''1. Change to the web directory on your Humax box'''
 +
 
 +
 
 +
<span style="background:#FFFF80"> cd /mod/var/mongoose/html/ </span>
 +
 
 +
 
 +
'''2. check no .htpasswd file already exists. ( just in case )'''
 +
 
 +
<span style="background:#FFFF80"> ls -alsh </span>
 +
 
 +
 
 +
If you already have a .htpasswd file you should see it listed.
 +
 
 +
<span style="background:#FFFF80"> cat .htpasswd </span>
 +
 
 +
 
 +
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.
 +
 
 +
 
 +
<span style="background:#FFFF80"> /mnt/hd2/mod/sbin/mongoose -A ./.htpasswd mydomain.com admin pass </span>
 +
 
 +
 
 +
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 :
 +
 
 +
 
 +
<span style="background:#FFFF80"> rm .htpasswd </span>
 +
 
 +
 
 +
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>
 +
 
 +
 
 +
Adding the following should change the domain to localhost:
 +
 
 +
 
 +
<span style="background:#FFFF80"> authentication_domain    localhost </span>
 +
 
 +
 
 +
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>

Revision as of 17:01, 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