Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Print
Topic: cant delete .txt file  (Read 746 times)
« on: March 28, 2008, 12:28:33 AM »
spyrox Offline
Newbie

View Profile
*
Posts: 5



when i tried to delete a .txt file, it says 'Unable to delete the file random.txt'.
How do i delete the file?
Report to moderator   Logged

 
« Reply #1 on: March 28, 2008, 08:44:43 AM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 1,996



Check the permissions on the file.
Report to moderator   Logged

« Reply #2 on: March 28, 2008, 08:51:50 AM »
T35 Head Forum Administrator
dWhite Offline
Administrator
Sr. Member

View Profile WWW
*****
Posts: 261



Like Alex stated, make sure the CHMOD settings on the file are set to 777.
Report to moderator   Logged

« Reply #3 on: March 28, 2008, 09:58:06 AM »
spyrox Offline
Newbie

View Profile
*
Posts: 5



i tried to change the CHMOD settings to 777 and it says 'Unable to execute site command chmod 0777 /random.txt. Note that the CHMOD command is only available on Unix FTP servers, not on Windows FTP servers.'

Any advise?
Report to moderator   Logged
« Reply #4 on: March 28, 2008, 11:34:30 AM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 1,996



Are you sure you are connected to our servers? We use linux/unix servers and our servers aren't configured to give out the error message you described.
Report to moderator   Logged

« Reply #5 on: March 29, 2008, 09:21:56 PM »
spyrox Offline
Newbie

View Profile
*
Posts: 5



has it got anything to do with the file being named passwords.txt? Coz i tried making another similiar file but named it with pws.txt and I was able to delete it  huh
Report to moderator   Logged
« Reply #6 on: March 31, 2008, 03:41:32 AM »
spyrox Offline
Newbie

View Profile
*
Posts: 5



umm... anyone?
Report to moderator   Logged
« Reply #7 on: March 31, 2008, 02:32:11 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 1,996



What are you trying to store in that file? We have many anti-phishing measures in place that will prevent you trying to create a phishing website.
Report to moderator   Logged

« Reply #8 on: March 31, 2008, 02:51:51 PM »
chickenmeister Offline
master of chickens
Global Moderator
Member

View Profile WWW
*****
Posts: 206



This might be helpful to Alex. I created a file called passwords.txt, then tried to delete it with my FTP client (FileZilla), and I get the error message:

Command:   DELE /passwords.txt
Response:   550 /passwords.txt: Forbidden filename


If you really want it gone. Add this php file to the same directory containing your passwords.txt file. Then go to this page via your browser to execute the script. Whatever you name this file, make sure it has the ".php" extension.

Code:
<?php
unlink
("passwords.txt");
?>

Report to moderator   Logged

Hello world!
« Reply #9 on: March 31, 2008, 03:51:34 PM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 1,996



Strange.. it shouldn't have let you create a passwords.txt in the first place! Did you create it in ftp, file manager, or with a php script?
Report to moderator   Logged

« Reply #10 on: March 31, 2008, 06:15:46 PM »
chickenmeister Offline
master of chickens
Global Moderator
Member

View Profile WWW
*****
Posts: 206



I created mine with a php script, but I don't know about the original poster.
Report to moderator   Logged

Hello world!
« Reply #11 on: March 31, 2008, 09:47:48 PM »
spyrox Offline
Newbie

View Profile
*
Posts: 5



well, i created it in ftp. I was able to create the file but was unable to delete it. Anyway, chickenmeister's script was able to remove the file. Thanks alot =)
Report to moderator   Logged
 
Pages: [1]
Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC