<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
hmm. Sometimes just asking a question provokes an answer. Apparently this little bit of PERL will create a similar file. <BR>
<BR>
cat myhtpasswd.pl<BR>
#!/usr/bin/perl<BR>
use strict;<BR>
chomp(my $filename=$ARGV[0]);<BR>
chomp(my $username=$ARGV[1]);<BR>
chomp(my $password=$ARGV[2]);<BR>
if (!$filename || !$username || !$password) {<BR>
print "USAGE: ./crypt.pl filename username password\n\n";<BR>
} else {<BR>
open FILE, ">>", $filename or die $!;<BR>
print FILE $username . ":" . crypt($password, $username) . "\n";<BR>
close FILE or die $!;<BR>
}<BR>
<BR>
The actual encrypted string is completely different from what my Centos box generates, but when I plopped it in place, Apache accepted the very same password. <BR>
<BR>
<BR>
On Fri, 2017-02-03 at 10:53 -0500, Neal Rhodes wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
So, we have a hosting account on a Godaddy Linux server: <BR>
<BR>
Linux XXXXXXXX.secureserver.net 2.6.18-411.el5PAE #1 SMP Mon Jul 11 18:26:16 CDT 2016 i686 i686 i386 GNU/Linux<BR>
<BR>
Which, amongst other things, hosts the Lloyd Shaw Foundations historic music downloads. So people all over the world are paying a tiny amount for tunes from the archives via Paypal, and then I setup download for them. <BR>
<BR>
Which now has me building an .htpasswd file on my local Centos 6 64 bit system, and shoving that over via scp. <BR>
<BR>
Because the Godaddy server lacks an htpasswd command. And Godaddy support has in the past and continues to decline to provide a compatible one. <BR>
<BR>
BUT, they don't have any problem with me stuffing one there in my local ./bin folder and running it. So, if I could find a compatible binary to the above, I could put the entire fulfillment process in one place and put a PHP front end on it and allow volunteers other than me to do it in places other than my office. <BR>
<BR>
So, the htpasswd from my 64 bit Centos 6 server didn't fly - I assume the binary is incompatible. How would I go about finding a compatible one? I did some random digging with rpmseek.com, and found one in <B><FONT SIZE="4"> </FONT></B>HTPASSWD-APACHE-2.2.22-7.I486.RPM, but after unpacking and shoveling it over there, it wants some libraries: <BR>
<BR>
<BLOCKQUOTE>
./htpasswd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory<BR>
<BR>
</BLOCKQUOTE>
Obviously, getting shared libraries starts to get more involved. I just want to create a one-line ..htpasswd file Apache is happy with for each music download directory. <BR>
<BR>
If this takes a lot of drama, I might just accelerate the migration of my hosting off this server onto a more current one, which Godaddy says they have to force to happen anyway by the end of 2017. <BR>
<BR>
Regards, <BR>
<BR>
Neal
<PRE>
_______________________________________________
Ale mailing list
<A HREF="mailto:Ale@ale.org">Ale@ale.org</A>
<A HREF="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</A>
See JOBS, ANNOUNCE and SCHOOLS lists at
<A HREF="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>