I have small Linux server (Debian Squeeze) which runs a Samba server which is configured to share some folders with some windows machines. While trying to delete one of the directories from windows I received the "Cannot delete folder" error.
I tried to delete the directory from the linux's console I got a similar error:
# rm dir-name -rf rm: cannot remove `dir-name': Directory not empty I listed the contents of the directory and found a file named .fuse_hidden followed by a hex number (000bd8c100000185).
# ls -la dir-name -rwxrwxrwx 1 root root 5120 Feb 13 11:46 .fuse_hidden000bd8c100000185 I tried to delete the .fuse_hidden file, but a new file was created instantly (note the hex number change).
# rm dir-name/.fuse_hidden000bd8c100000185 # ls -la dir-name -rwxrwxrwx 1 root root 5120 Feb 13 11:46 .fuse_hidden000bd8c100000186 I also tried using Midnight Commander to delete the file with no success.
Other solutions I have found so far involve GUI and I've only got console.
Any suggestions are appreciated.
rm dir-name -rf?