FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-06-2008, 03:02 PM
"Thomas Dukes"
 
Default Apache Authorization Access Control - locationofhtpasswd in Centos 5.1?

*



From: centos-bounces@centos.org
[mailto:centos-bounces@centos.org] On Behalf Of Pam Astor
Sent:
Sunday, April 06, 2008 10:23 AM
To: CentOS mailing
list
Subject: RE: [CentOS] Apache Authorization Access Control -
locationofhtpasswd in Centos 5.1?




>
>>> 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.
> > Thanks! Ok I ran /usr/bin/htpasswd -c
/passwd/passwords famsite as root, and still got
> > the cannot
create file error.
>
> Does the /passwd directory
exist?
*
It does now.* It did not when I first ran the
command, however
I just created the directory /passwd/passwords
and re
ran the command as root, and still no luck.
*
I think
you only need to create the directory /passwd, then use 'touch' to
create*the file, passwords*

Thanks Thomas,
*
Not familiar with the "touch" command, can you point me to info on it, or
show
the command syntax?
*Not sure if htpasswd creates the password file.*
If not, the as root, run:* touch passwords ,in the */passwd directory.* It will be an empty file, but
the 'htpasswd -c' should create this for you.
*
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.
*
Where are you
creating these directories?* In the past when I used this, my passwd
directory was*/var/www/passwd/





Use video conversation to talk face-to-face with Windows Live Messenger. Get started!
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org