Jens Müller: Passwordschutz mit .htaccess

Beitrag lesen

Hallo Markus,

Das Passwort muß mit crypt verschlüsselt sein.
Der Server läuft auf Windows2000. Dann muss man doch in
Klartext, oder?

Oeffne mal im Verzeichnis Apache\bin Dos und oeffne das Programm
htpassd. Damit kannst du .htpasswd Dateien Automatisch anlegem.

Dan sollte dies bei dir auf dem Bildschirm erscheinen.

C:\Apache\bin>htpasswd
Usage:
        htpasswd [-cmdps] passwordfile username
        htpasswd -b[cmdps] passwordfile username password

htpasswd -n[mdps] username
        htpasswd -nb[mdps] username password
 -c  Create a new file.
 -n  Don't update file; display results on stdout.
 -m  Force MD5 encryption of the password (default).
 -d  Force CRYPT encryption of the password.
 -p  Do not encrypt the password (plaintext).
 -s  Force SHA encryption of the password.
 -b  Use the password from the command line rather than prompting for it.
On Windows, TPF and NetWare systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.

gruesse aus'm Ruhrpott
  jens mueller

--
Alles sollte so einfach wie möglich gemacht werden,
- aber nicht einfacher. / Albert Einstein Physiker (1879-1955)