LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Password protect a directory (https://www.linuxquestions.org/questions/suse-opensuse-60/password-protect-a-directory-348462/)

aquatux 07-30-2005 10:14 PM

Password protect a directory
 
I have LAMP on SUSE 9.3 and thought it would be a good idea to password protect the /srv/www/htpdocs/phpMyAdmin directory for a little more security.

The problem is that I can't get the command 'htpasswd -c mypass user-name' to work. I looked into mod_auth and it's listed as loaded in phpinfo.

I'm new to all things Linux and have myself a little lost now. I found a nice little tutorial on "Password Protection of WWW pages" and tried to follow it to the letter but it's as if htpasswd is not functioning.

Is there another way or am I missing something in my config?

aysiu 07-30-2005 10:45 PM

I don't know much about LAMP, but does this help?
http://www.linuxforum.com/forums/ind...owtopic=145120

aquatux 07-31-2005 05:08 PM

I want to do it with htpasswd for learning purpose, but there appears to be no trace of it in my install.

mgillen2000 07-31-2005 09:50 PM

Try "slocate htpasswd"

aquatux 08-01-2005 08:20 AM

Quote:

Try "slocate htpasswd"
I don't seem to have slocate available.

imemyself 08-01-2005 05:07 PM

Try running
Code:

find /|grep htpasswd
.

aquatux 08-01-2005 11:56 PM

I found it here thanks: /usr/sbin/htpasswd2


All times are GMT -5. The time now is 06:33 AM.