Oliver Friedrichs wrote:
[...]
> For example, you can create known devices with random extensions over
> a file share, com1.1 com1.2 com1.3 com1.4, and you cannot remove them
> locally.  It's probably a good thing that the CIFS layer doesn't
> provide direct access to these devices, otherwise an anonymous share
> could open up a number of other security issues.


The file can be removed if you write the filename in a way that parsing
doesn't recognize it as "special". Use a prefix of "\\.\" for example.

E:\temp>dir *nul*
File Not Found

E:\temp>echo test > nul:#

E:\temp>dir *nul*
00-03-17  13:29                      0 nul

E:\temp>del nul
The system cannot find the path specified.

E:\temp> del nul:
The system cannot find the path specified.

E:\temp>del \\.\e:\temp\nul

E:\temp>dir *nul*
File Not Found

Reply via email to