| 146 |
| Delete folders with blank or reserved names |
| Hackers or Crackers often use folders with reserved filenames to make it difficult for a system |
| administrator to remove files, particularly when those hackers get into your FTP server and start |
| using it to host their own files. |
| Typically, you can use DEL on a FAT file system to delete files with reserved names, but on NTFS |
| you need to use Rm.exe, a tool included with the Windows 2000 Resource Kit. If you can't take |
| ownership of the folder or file, however, you'll get an Access Denied message when you try to |
| Windows 2000 provides an option in the GUI to take ownership of a folder or file, but this method |
| can fail when the folder or subfolder contains a reserved or blank name. The answer is to use |
| another Windows 2000 Resource Kit tool, Subinacl.exe, to take ownership of the item. |
| To use Subinacl.exe, you first need to determine the item's short filename, which you can do by |
| executing this command in the item's parent folder: |
| Armed with the short name, use the Subinacl.exe command to take ownership and grant full |
| subinacl.exe /file <path>\<shortname> /setowner=administrator |
| If you need to take ownership of an entire directory tree, use the /subdirectories switch with the |
| command, as shown in this example: |
| subinacl.exe /subdirectories <path> /setowner=administrator /grant=administrator=f |
| In some cases, you might need to use multiple Subinacl.exe commands to take ownership and gain |
| access to a lengthy subdirectory tree. |
| After you take ownership and grant full access to the reserved folder or file, you should be able to |
First Previous Next Last |