LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-30-2005, 10:14 PM   #1
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Rep: Reputation: 15
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?
 
Old 07-30-2005, 10:45 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
I don't know much about LAMP, but does this help?
http://www.linuxforum.com/forums/ind...owtopic=145120
 
Old 07-31-2005, 05:08 PM   #3
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 15
I want to do it with htpasswd for learning purpose, but there appears to be no trace of it in my install.
 
Old 07-31-2005, 09:50 PM   #4
mgillen2000
LQ Newbie
 
Registered: Jul 2004
Location: Boston, MA
Posts: 8

Rep: Reputation: 0
Try "slocate htpasswd"
 
Old 08-01-2005, 08:20 AM   #5
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Try "slocate htpasswd"
I don't seem to have slocate available.
 
Old 08-01-2005, 05:07 PM   #6
imemyself
Member
 
Registered: Feb 2004
Location: Wichita, KS
Distribution: CentOS 4, SuSE 10, Tiger
Posts: 110

Rep: Reputation: 15
Try running
Code:
find /|grep htpasswd
.
 
Old 08-01-2005, 11:56 PM   #7
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 15
I found it here thanks: /usr/sbin/htpasswd2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect souvik Programming 3 11-06-2015 01:35 PM
How Can I password protect a sub-directory of a hosted website from client PC mark001 Linux - Newbie 18 11-12-2004 02:29 PM
how to protect a file with password bobgodwinx Linux - Security 7 07-20-2004 08:47 AM
How to password protect a web directory abdulber Linux - Software 1 01-27-2004 11:34 PM
Password protect a directory Stephanie Linux - General 6 03-26-2002 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration