Jump to content

G 'Day all, I am currently build a Raspberry Garage Door Monitor and Web Page based Remote con...


G+_Geoff Galley
 Share

Recommended Posts

DSCF2949.jpg

G'Day all,

I am currently build a Raspberry Garage Door Monitor and Web Page based Remote control.

I am following instructions in a Magazine called SiliconeChip which has a step by step instruction based over 3 magazines. (Yes I am a Noob) I have had no problems untill I hit this step which allows me access via the web.

The lines are as follows.

 

sudo apt-get install apache2-utils

sudo a2enmod authn_dbm

now come the line I get the problem with

sudo htdbm -c -TSDBM /etc/apache2/dbmpasswd

 

Please see photo of error.

 

I know the the are replaced with real username and password without the <>.

but I cant seem to get passed the 3rd line.

 

I have done a sudo apt-get update, install and reboot.

 

I have tried swapping the -c -TSDBM around, but no luck

Link to comment
Share on other sites

I'm not so sure that's an error, but maybe a warning. You can probably get rid of the message by using the "-B" or "-m" options for BCRYPT or MD5. Since MD5 and SHA aren't real secure (maybe fine for this use), BCRYPT would be much better.

 

I suspect you could check the content of the file with:

cat /etc/apache2/dbmpasswd

Since I'm not familiar with htdbm, I don't know what you should expect to see there.

Link to comment
Share on other sites

It is not clear to me exactly what you are trying to do here. However, it appears to me that you are trying to create an authentication database. If that is what you are trying to do I would try this (htdbm -c path/filename username). Basically just remove the -TSDBM and password from what you already have, you will have to set the password later.

Link to comment
Share on other sites

-t and -TDBTYPE are two different things. -t is used for comments while -TDBTYPE is used for specifying the file type. Both are unnecessary unless there is already a file on the system or you want the file you create to be of a specific type. Remember that it is case sensitive. Also if you are set on doing it as the article says try the same line that you have been trying without the password. It should then prompt you for the password.

 

These links may help you. I think the last link will most likely help you the most.

 

httpd.apache.org - htdbm - Manipulate DBM password databases - Apache HTTP Server Version 2.4

 

http://man.he.net/man1/htdbm

 

http://howtolamp.com/lamp/httpd/2.4/securing/auth-basic-dbm/

Link to comment
Share on other sites

 Share

×
×
  • Create New...