RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Thomas Dukes
 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Pam Astor
Sent: Sunday, April 06, 2008 9:59 PM
To: CentOS mailing list
Subject: RE: [CentOS] Apache Authorization Access Control - location
ofhtpasswd 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.
> > >
> > > That rather sounds like the path /passwd/passwords does not exist or 
> > is not
> > > writable.
> > >
> > 
> > Well, I just tried chomd 777 passwords and still the same problem.
> 
> Can you show us what the result of the
> 
> ls -l /passwd/passwords
> 
> command is?
 
Thanks for asking there, actually the problem has been solved, I deleted the
passwords 
dir and chmoded 777 the passwd dir and the unsername and password were
created
by htpasswd. 
 
chmod to 777 is never a good thing.  I believe the file needs to be owned by
root with group ownership to apache at 640.  There are also requirements on
the .htaccess file as well.
 
At one time, and it may still be, there was an example in one of the
/etc/httpd directories using mysql to do the authentication rather than
apache.  It might be a little more secure but not by much if you're not
using SSL.
 
 


  _  

Pack up or back up-use SkyDrive to transfer files or keep extra copies.
Learn how.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refre
sh_skydrive_packup_042008>  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Pam Astor

> Just for the sake of simplicity, please create your htpasswd file in the > 
> tmp directory and copy it elsewhere. Any user can write in /tmp .. > although 
> if you are using the root user this should not be an issue.
Yes I'm doing this as root.
_
More immediate than e-mail? Get instant access with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Barry Brimer



On Sun, 6 Apr 2008, Pam Astor wrote:





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/passwordsand re ran the command as root, and still no luck.


PS, I think there are some permission requirements for the directory and file 
as well.  I think they have to be owned by 'apache'.

The dirs were owned by root, so I just chown'ed to apache, re ran the command
/usr/bin/htpasswd -c /passwd/passwords famsite, still no luck.


Just for the sake of simplicity, please create your htpasswd file in the 
tmp directory and copy it elsewhere.  Any user can write in /tmp .. 
although if you are using the root user this should not be an issue.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Pam Astor


> >>> 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/passwordsand re ran the command as root, 
> >>> and still no luck. 
 
PS, I think there are some permission requirements for the directory and file 
as well.  I think they have to be owned by 'apache'. 
 
The dirs were owned by root, so I just chown'ed to apache, re ran the command 
/usr/bin/htpasswd -c /passwd/passwords famsite, still no luck. 
_
Pack up or back up–use SkyDrive to transfer files or keep extra copies. Learn 
how.
hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Pam Astor


> >>> 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/passwordsand 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?
_
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Thomas Dukes
 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Pam Astor
Sent: Sunday, April 06, 2008 9:57 AM
To: CentOS mailing list
Subject: RE: [CentOS] Apache Authorization Access Control - location
ofhtpasswd 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. 
 
PS, I think there are some permission requirements for the directory and
file as well.  I think they have to be owned by 'apache'. 



  _  

Pack up or back up-use SkyDrive to transfer files or keep extra copies.
Learn how.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refre
sh_skydrive_packup_042008>  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Apache Authorization Access Control - location ofhtpasswd in Centos 5.1?

2008-04-06 Thread Thomas Dukes
 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Pam Astor
Sent: Sunday, April 06, 2008 9:57 AM
To: CentOS mailing list
Subject: RE: [CentOS] Apache Authorization Access Control - location
ofhtpasswd 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 


  _  

Pack up or back up-use SkyDrive to transfer files or keep extra copies.
Learn how.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refre
sh_skydrive_packup_042008>  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos