<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> centos-bounces@centos.org 
[mailto:centos-bounces@centos.org] <B>On Behalf Of </B>Pam Astor<BR><B>Sent:</B> 
Sunday, April 06, 2008 10:23 AM<BR><B>To:</B> CentOS mailing 
list<BR><B>Subject:</B> RE: [CentOS] Apache Authorization Access Control - 
locationofhtpasswd in Centos 5.1?<BR></FONT><BR></DIV>
<DIV></DIV>
<BLOCKQUOTE>
  <DIV class=EC_OutlookMessageHeader lang=en-us dir=ltr align=left>> 
  >>> I tried creating a password file by executing htpasswd -c 
  /passwd/passwords> > famsite but apparently htpasswd is not in my path, 
  I'm getting the "cannot> > create file /passwd/passwords famsite" 
  error.> >> >> >> > Anyone know where the default 
  location of htpasswd is on a centos 5.1> > install? Or how to generate a 
  password file on a centos 5.1 install?> > > There's a utility called 
  'which' you can use to discover the location> of certain apps you want to 
  learn about.<BR>> > Thanks! Ok I ran /usr/bin/htpasswd -c 
  /passwd/passwords famsite as root, and still got<BR>> > the cannot 
  create file error.<BR>> <BR>> Does the /passwd directory 
  exist?<BR> <BR>It does now.  It did not when I first ran the 
  command, however <BR>I just created the directory /passwd/passwords<BR>and re 
  ran the command as root, and still no luck.<BR><SPAN 
  class=EC_125150814-06042008><FONT face=Arial 
  color=#0000ff> </FONT></SPAN></DIV>
  <DIV><SPAN class=EC_125150814-06042008><FONT face=Arial color=#0000ff>I think 
  you only need to create the directory /passwd, then use 'touch' to 
  create the file, passwords</FONT> </SPAN><BR></DIV>
  <DIV>Thanks Thomas,</DIV>
  <DIV> </DIV>
  <DIV>Not familiar with the "touch" command, can you point me to info on it, or 
  show</DIV>
  <DIV>the command syntax?</DIV></BLOCKQUOTE>
<DIV><SPAN class=468195314-06042008><FONT face=Arial color=#0000ff> <FONT 
face=Tahoma color=#000000>Not sure if htpasswd creates the password file.  
If not, the as root, run:  touch passwords ,in the </FONT> <FONT 
face=Tahoma color=#000000>/passwd directory.  It will be an empty file, but 
the 'htpasswd -c' should create this for you.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=468195314-06042008></SPAN> </DIV>
<DIV><SPAN class=468195314-06042008><FONT face=Arial color=#0000ff>I think you 
have a permissions problem so if you create the passwrds file with touch, you 
probably won't be able to add the password to it using htpasswd 
either.</FONT></SPAN></DIV>
<DIV><SPAN class=468195314-06042008><FONT face=Arial 
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=468195314-06042008><FONT face=Arial color=#0000ff>Where are you 
creating these directories?  In the past when I used this, my passwd 
directory was /var/www/passwd/</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV>
<HR>
</DIV>
<DIV>Use video conversation to talk face-to-face with Windows Live Messenger. <A 
href="http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008" 
target=_new>Get started!</A> </DIV></BODY></HTML>