It's htpasswd and not passwd. As many others on this group i don't use the redhat config system it's lame. You will be better off editing httpd.conf and adding an AllowOverrides directive.
best regards
Frank Tudor wrote:
I have to apologies about this posting in advance so please don't flame me too bad for being off topic.
Question:
I want to create an .htaccess file to protect my files
I did the passwrd -c /directory/file frank
the set a password and then confirmed the password
I created a .htaccess file with vi and put this in it.
AuthName "restricted stuff" AuthType Basic AuthUserFile /var/password/frank
require valid-user
then in the redhat http server utitily under server settings
I went tot he virtual directory section and created a new
virtual dir called virtual 0 and check marked the box at the
bottom for .htaccess protection.
I restart the server and then go to another computer and put in the URL and no password box comes up.
:(
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php