nolittle
05-13-2002, 03:21 AM
I recently password protected a directory using .htaccess to prevent unautorised access to a forum. I now want to remove the password protection.
I am assuming I simply need to remove the .htaccess file?
When I ftp the site and look in the directory, I cant find the .htaccess file to remove it.
Have I done something wrong?
Is there some other way of dissabling password protection?
Nolittle
Gadgy
05-13-2002, 03:42 AM
The .htaccess file is a hidden file when placed onto the server, you have to enable "view hidden files" in your client.
blacknight
05-13-2002, 03:44 AM
By default you cannot see .htaccess or .htpasswd files via FTP. You need to use a telnet/SSH connection to see them.
Login. Type: ls -l .h* You will then get a list of any .ht* files. Deleting them will remove the password protection.
If you aren't comfortable using this method I would suggest that you install Gossamer Fileman, which has a simple interface for controlling password protected areas etc.
nolittle
05-13-2002, 05:52 AM
Blacknight
I am not too familiar with doing things to my raq via telnet. But I am fairly comfortable with listing my files.
What I don't know how to do is to delete them.
could you advise what the command for deleting is? Is it del like in dos?
Nolittle.
nEMESIS4
05-13-2002, 08:22 AM
If you need to remove it quickly, and don't want to hassle with telnet or your FTP client. Just simply upload a blank .htaccess file in the same spot you originally uploaded it too. It won't ask you to overwrite it, and it will disable the password protection without any problems.
FiberOptic
05-13-2002, 10:02 AM
Delete command is
DELE .htaccess
nolittle
05-13-2002, 12:01 PM
FibreOptic
I managed to display the .htaccess file in the password protected directory using "ls -l .h*". But when I tried to delete it using the command you suggested I got the following message:
bash: dele: command not found
I also tried the same using uppercase, but I still got the same message.
Any ideas?
NoLittle
FiberOptic
05-13-2002, 12:47 PM
the DELE command is a console command and can be used in a TELNET session, not in an FTP session.
But...
I just tried to use it in an FTP session to my RaQ4r and DELE worked file ..
cbtrussell
05-13-2002, 01:05 PM
Heh, I think you have it backwards.
rm can be used on the cmd line
dele can be used via FTP
so to answer the original question, from the cmd line type
rm .htaccess
and you're done
Brandon
nolittle
05-13-2002, 01:11 PM
Thanks
BooBoo rm worked fine! :cool:
FibreOptic
I was trying DELE from Telnet but no joy :(
Thanks to everyone for the postings! :D
D8Mike
05-13-2002, 06:08 PM
If useing Ws_ftp you can simply type in -al or -la either one in the blank box under Mk Dir on right hand side and it will list all files includeing htaccess in each directory.
CmptrWz
05-13-2002, 08:10 PM
-a works just fine for me to show hidden files