Re: Html passwords

Gavin M. Roy (gmr@nextpath.com)
Thu, 29 Oct 1998 10:58:33 -0800


Sorry for the cross-post.

"Gavin M. Roy" wrote:
>
> Also I believe Apache 1.3.x is picky about the AuthName directive. If
> you are using multiple words in the AuthName, enclose them in quotes.
>
> AuthName "Home Page"
>
> Gavin
>
> Chris Joyce wrote:
> >
> > make sure your srm.conf has the AccessFileName in it.
> >
> > # AccessFileName: The name of the file to look for in each directory
> > # for access control information.
> >
> > AccessFileName .htaccess
> >
> > make sure the .htaccess is -rw-r--r-- nobody nogroup ( or for the
> > user/group found in your httpd.conf
> >
> > User nobody
> > Group nogroup
> >
> > make sure you have a valid .htaccess file and no overriding settings in
> > the httpd.conf or srm.conf (AllowOveride None)
> >
> > if this not hot help send me you .htaccess and "ll chk it for you.
> >
> > chris
> >
> > > Hi,
> > >
> > > I have tried this but it doesn't seem to work. When i used a browser to
> > > view the (supposed to be) protected pages no login screen appeared.
> > > Do I have to enable something or what?
> > >
> > > bye,
> > >
> > > Koen Zeilstra
> > >
> > > btw: the protect file's name should be .htaccess instead of .htaddess?!!
> >
> > sorry about the typo ..
> > >
> > >
> > >
> > >
> > > On Fri, 30 Oct 1998, Chris Joyce wrote:
> > >
> > > >
> > > > 1) make a passwd file
> > > >
> > > > for the first time ( only )
> > > >
> > > > htpasswd -c /the/passfile username
> > > >
> > > > then all others
> > > >
> > > > htpasswd /the/passfile username
> > > >
> > > > the passwd file can be anyware on the server as long at the webserver and
> > > > read it ( see httpd.conf )
> > > >
> > > > 2) make a .htaddess file in the same dir as the protected pages
> > > >
> > > > AuthName A message for the web browser to display.
> > > > AuthType Basic
> > > > AuthUserFile /the/passfile
> > > > require valid-user
> > > >
> > > > the AuthName will be displayed to the user through the browser.
> > > > AuthType read the man pages for more options
> > > > AuthUserFile as made in step one
> > > > require there a few options here but valid-user is most common .
> > > >
> > > > > let's my .htaccess is
> > > > >
> > > > > AuthType basic
> > > > > AuthUserFile .htpasswd
> > > > > AuthName Home Page
> > > > > require fede
> > > >
> > > > this would work even if your webpasswd's where in the file /.htpasswd
> > > > and the server could read it.
> > > >
> > > > > and .htpasswd is present in the same directory and is
> > > >
> > > > it should be
> > > >
> > > >
> > > >
> > > > chris
> > > >
> > > > "It would be just like programmers to shorten
> > > > 'the year 2000 problem' to 'Y2K'-- exactly the kind
> > > > of thinking that created this situation in the first place."
> > > >
> > >
> >
> > /* Chris Joyce, professional geek */
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/