Discussion Locked

Can't Delete Directory with No Name

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Okay, stop laughing. Like a friggin idiot, I provisioned my new server and forgot to lock down the FTP services and someone used my server for FTP downloads for a few hours before I caught on.

As you can guess, I've been able to remove most of the files but not the directory structure. The root of the directory has no name, and has sub-directories also with invalid characters. I've tried using the RM utility to no avail. Found an article on POSIX commands on the NET, but either I didn't follow the instructions properly or whatever.

None-the-less, any help in removing them would be appreciated. Just an annoyance at this point, server is secured.

Following is the path of the directory. NOTE: there are three spaces at the end of the last directory.

D:\ \scan\and\tag\.COM1 \by\for \FuXuen\and\^^$$FuCks DeLeTeRs$$^^

4 replies

by tforce

BTW, I only have access to this server through Terminal Services, FTP, or PC Anywhere (which I haven't installed).

by /dev/null

I just read a "hacking" paper on this very subject. see http://homepage.ntlworld.com/grant2k/ewhb/TUT_EndDel.htm (remove spaces if any) **some questionable language**

Search USENET groups via google using the following query: ftp com1 spaces

To fix (pulled from usenet group found via google using the above query string; 3rd result):
****start of quote:
1. download an FTP program that can do raw commands (SmartFTP www.smartftp.com)
2. FTP to your ftp site
3. See the path of the bad directory. For example
/tagged/by/COM1 /
(^^^note there may be one or more spaces after COM1 or other file name)
You can usually click the bad folder in the right-hand pane of SmartFTP to
see how many spaces are there.
4. Make sure you cansee the command line pane (Shift+F5)
5. In the command line, type the RNFR command with the path of the bad
directory in the following format (followed by an "empty space path"):

RNFR /tagged/by/COM1 / /

6. In the command line, type the RNTO command followed by any directory name.
For example,

RNTO /unlocked

It should say that it's successful.

7. Repeat for all subsequent "locked" folders.

You should then be able to go through and delete all the crap that's been
uploaded.
****end of quote:

I have NOT tested this. You might find this not to work for you. Just keep looking in the groups, you'll find it. Ahh the power of Google!

The other way to get rid of 'em is to backup/format/restore.... but that my notbe reasonable in your instance.

Good luck!

by tforce

worked for a few folders, but not for folders which seem to have no name or have spaces trailing their name.

This discussion is closed to new replies.