Re: Why is this not working
| From: | YoBro | Date: | Fri, 18 May 2001 00:18:40 +0000 |
| Subject: | Re: Why is this not working | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53359@lists.php.net to get a copy of this message | ||
I thought about.
But I need to be able to change user passwords also.
Writing directly to the file will only add another user.
Unless you know any ways of breaking apart the file and picking out the user
names then changing the password for that name.
EG
A typical htpasswd file with two entries...
jim:17IpSNa/jwy0M
dave:41xXSdxl.xgC2
I guess break it apart where delimited by ":" but how.
I have no idea where to even begin writing code like that. Good thought
though.
""Peter Dudley"" <peter@peterdudley.com> wrote in message
news:9e1p79$b1r$1@toye.p.sourceforge.net...
> can you write directly to the password file using crypt() instead of
trying
> to run the htpasswd program? I think I used to do this in Perl, but it's
> been a LONG time since I tried it. I think it worked, though.
>
> Pete.
> PS: I'm also pretty sure that if you can't write direclty to the
.htpasswd
> file, you can specify multiple password files in your .htaccess file, and
> you should be able to write to an alternative password file.
>
> ""YoBro"" <nospam@brochures.co.nz> wrote in message
> news:9e1okc$3de$1@toye.p.sourceforge.net...
> > The .htpasswd file lives in the root of my user account.
> > ie:
> >
> > [www] directory
> > .htpasswd file
> >
> > It then goes:
> >
> > [www]
> > |
> > [public_html]
> > [htocs]
> > |
> > All website content etc
> >
> > If I go beyond the www directory, I get a list of hundreds of
directories
> > and files.
> > This is where I found the the htpasswd executable under
> >
> > /usr/local/bin
> >
> > Even if i define that path in my code it is still not working
> > The output of ls the root beyond www dir is far to much to put into this
> > message.
> >
> > Is that what you were asking, or am on the wrong track?
> >
> > YoBro
> >
> >
> >
> >
> > "MaD dUCK" <madduck@madduck.net> wrote in message
> > news:20010517194711.C24242@fishbowl.madduck.net...
> > > also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200):
> > > > If I try su nobody it asks for nobody's password. If i enter no
> > > > password a I get Authentication denied.
> > >
> > > you aren't root.
> > >
> > > can you give me an output of 'ls -l <path/to/.htpasswdfile>'
> > >
> > > martin; (greetings from the heart of the sun.)
> > > \____ echo mailto: !#^."<*>"|tr
> > > "<*> mailto:" net@madduck
> > > --
> > > printer not ready.
> > > could be a fatal error.
> > > have a pen handy?
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin@lists.php.net
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>