Solved

FTP Site TAGGED - Cant delete directories -HELP!

Posted on 2004-10-04
5
364 Views
Last Modified: 2012-08-13
Over the weekend my ftp server was tagged by some warez group.
I now have a directory structure that I can't seem to delete.
I'm running XP Pro with NTFS and I have run scan disk etc.
I've taken ownership of the directory structure and all sub directories by going to the top directory and applying permissions there because I cant apply permissions directly to any subdirectories they put there....they dont have a security tab (just general and customize tab)

When I try to delete a sub folder such as lpt2, it says "Cannot Delete lpt2 : Cannot find the specified path. Make sure you specify the correct path."
I found that "lpt1" etc is a windows system file name and windows won't let you delete it ( I think). so thats another problem.
Also If I try to delete other folders in the structure it says "Cannot Delete lpt1 : The parameter is incorrect"

Any suggestions would be appreciated (can it be done while in windows?)
0
Comment
Question by:Matrix1000
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 12219969
See http://support.microsoft.com/default.aspx?scid=kb;en-us;315226 ("How to Remove Files with Reserved Names in Windows XP"). The scoop is:

If the file was created on a file allocation table (FAT) partition, you may be able to delete the file under MS-DOS by using standard command line utilities (such as DEL) with wildcard (*) characters, for example:
DEL PR?.*

-or-

DEL LPT?.*

These commands do not work on an NTFS file system partition. For this case another option would be to use a syntax that bypasses the normal reserved-word checks altogether. You may be able to delete any file by using a command like this:
DEL \\.\drive letter:\path\file name

For example:
DEL \\.\c:\somedir\aux

If the name in the file system appears as a directory, you may be able to delete any directory by using a command like this:
RD \\.\drive letter:\path\directory name

For example:
RD \\.\c:\somedir\aux

0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12221868
K this is fun... but they seem to have used the lpt1 trick so I can't delete.

I tried..
X:\>RD \\.\C:\ftproot\F 4959 \lpt3 \com2 \com1 \aux0 \aux0 \null \ \lpt3 \com3
 \lpt1 \aux0 \com1 \com1 \ \lpt1 \ \lpt1 \aux \com3 \com3 \com2 \lpt2
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The directory name is invalid.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The process cannot access the file because it is being used by another process
The system cannot find the file specified.
The system cannot find the file specified.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The system cannot find the file specified.
The directory name is invalid.
The directory name is invalid.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The process cannot access the file because it is being used by another process
The parameter is incorrect.
The directory name is invalid.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.

:\
0
 
LVL 86

Expert Comment

by:jkr
ID: 12221896
>>:\>RD \\.\C:\ftproot\F 4959 \lpt3

If the path contains spaces, you need to use

RD "\\.\C:\ftproot\F 4959 \lpt3"
0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12222416
Hmm that worked for one directory structure but not for this one...

C:\ftproot>RD "\\.\C:\ftproot\scanned \by \JDX \tagged \by \Nibbler \uploads for \TGF \uppedBy \Nibbler\(c) Copyright - Taggerboy 2002 "
The system cannot find the file specified.
0
 
LVL 1

Author Comment

by:Matrix1000
ID: 12222788
nevermind...I forgot the trailing slash like

C:\ftproot>RD "\\.\C:\ftproot\scanned \by \JDX \tagged \by \Nibbler \uploads for
 \TGF \uppedBy \Nibbler\(c) Copyright - Taggerboy 2002 \ "

Thanks!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question