|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
![]() |
|
|
Search this Thread |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Perl Script
Found this with a simple google search.
httpasswd-b for older systems. It's a Perl script that implements '-b'. |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |