Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
google site



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 12-24-2009
Registered User
 

Join Date: Jul 2002
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Resolved: htpasswd issues (-b) on FreeBSD

I wrote a script to batch-create directories with .htaccess and .htpasswd files.

I am using the following line to create the .htpasswd file:

Code:
htpasswd -cb .htpasswd $USER $PASS

However, I keep getting this message in return:

Code:
Usage: htpasswd [-cm] passwordfile username
The -c flag creates a new file.
The -m flag forces MD5 encryption of the password.
On Windows systems the -m flag is used by default.

I tried it directly from the shell (no variables), and got the same error. Could it be that the version of htpasswd on this server does not support the -b option? If so, where can I get a version that supports it? The server is running FreeBSD 6.3.

Thanks
AS

---------- Post updated at 04:57 PM ---------- Previous update was at 01:23 PM ----------

Figured it out. It looks like this server has a REAL old version of apache. I downloaded newer apache binaries and uploaded the newer htpasswd to a directory on the server (since it is not my server, I can't upgrade apache on it).

Last edited by Spetnik; 12-24-2009 at 03:57 PM.. Reason: resolved
Sponsored Links
  #2  
Old 12-24-2009
Registered User
 

Join Date: Nov 2009
Posts: 38
Thanks: 0
Thanked 3 Times in 3 Posts
Perl Script

Found this with a simple google search.

httpasswd-b for older systems. It's a Perl script that implements '-b'.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using IP.Board on FreeBSD, having SQL/Apache Issues Dark Severance Web Programming, Web 2.0 and Mashups 2 08-17-2009 05:23 PM
FreeBSD - Kernel Queries/Issues drbabbers BSD 3 11-04-2008 03:02 PM
Some FreeBSD issues cbkihong UNIX for Dummies Questions & Answers 16 06-15-2003 02:06 AM
snort installation on freebsd issues xyyz UNIX for Advanced & Expert Users 13 02-09-2003 10:11 PM
FreeBSD 4.7 X issues - assistance req'd please Calum UNIX Desktop for Dummies Questions & Answers 1 02-03-2003 07:16 PM



All times are GMT -4. The time now is 10:57 PM.