Re: [users@httpd] Basic Authentication not Authenticating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 12 May 2005 10:12, Craig Dunigan wrote:
> On Thu, 12 May 2005, Richard Crawford wrote:
> > I'm trying to implement Basic authentication for my user directory on my
> > server, but it's bombing on me.  When I go to the protected site, I'm
> > prompted for a username and password as expected; however, the user is
> > not authenticated even if they put in the proper username and password.
> >
> > I'm using Apache 2.0.52 on Fedora Core 3.  SELinux is enabled, but the
> > security context for the relevant directories has been set properly using
> > the chcon command.
> >
> > The official Apache documentation at
> > http://httpd.apache.org/docs-2.0/howto/auth.html offers no advice for my
> > situation, neither do any of my Apache books, so I'm obviously missing
> > something very basic.
> >
> > Here's the user_dir portion of my httpd.conf file:
> >
> > =======================================================
> > <IfModule mod_userdir.c>
> >     UserDir enable richard jenipurr
> >     UserDir public_html
> > </IfModule>
> >
> > <Directory /home/*/public_html>
> >     AllowOverride All
> > </Directory>
> > =======================================================
> >
> > And here's the contents of /home/richard/public_html/.htaccess in the
> > directory:
> >
> >
> > =======================================================
> > AuthType Basic
> > AuthName "Secret Stories"
> > AuthUserFile /home/richard/.passwords
> >
> > require valid-user
> >
> > =======================================================
> >
> > The permissions on both .htaccess and .passwords are set to 644, so
> > Apache should be able to read them.  I've confirmed -- several times --
> > that the .passwords file exists in the location I've indicated in
> > .htaccess.  And I've used htpasswd to create the username and password
> > several times.
> >
> > What is going on and how do I fix it?
>
> I'm guessing that 'nobody' doesn't have privileges to get to
> '/home/richard'? Like 0755 on both /home and /home/richard?

Nope, that's not it.  Tried it and it didn't work.  Thanks for the suggestion.

-- 
Richard S. Crawford
Programmer III
UC Davis Extension Distance Education Group
2901 K Street
Sacramento, CA  95816
(916)327-7793
http://unexdlc.ucdavis.edu

Attachment: pgpbyHvv8r34J.pgp
Description: PGP signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux