Cannot delete no permission file

I am trying to delete a folder, but unable to do so. tried my level best to delete.
Here I am giving all the steps I have tried out -

  1. Output of ls -la
ls: cannot access -loop0: Permission denied
ls: cannot access -e0.7: Permission denied
total 324
d????????? ? ? ? ? ? -e0.7
d????????? ? ? ? ? ? -loop0
drwxrwxrwx 4 geeko root 4096 Feb 8 14:46 .
drwxrwxrwt 5607 root root 323584 Feb 8 17:48 ..
  1. Tried to change Permission with chmod -R 777, ( chmod -R 777 "-e0.7") but did not work.
chmod -R 777 "-e0.7"
chmod: invalid option -- 'e'
Try `chmod --help' for more information.
  1. Tried to change Ownership with chown -
chown -R root "-e0.7"
chown: invalid option -- 'e'
Try `chown --help' for more information.
rm -rf "-e0.7"
rm: invalid option -- 'e'
Try `rm --help' for more information.
rm -rf ../"-e0.7"

This command does not show any error, but folder is not being deleted.

  1. Even I have tried to delete the folder with inode number, but failed to do so.

As per my thinking, I need to change the permission of the folder first, but unable to change.

Any help will be appreciated.

add another -- before the the filename
This will stop the programs from thinking it is another switch argument.
e.g.

chmod -R 777 -- -e0.7

Thanks for your reply.
Tried your instruction but its giving the same error:

ldmserver1:/tmp/.abhishek.parwal-ltspfs # chmod -R 777 -- -e0.7
chmod: cannot access `-e0.7': Permission denied
ldmserver1:/tmp/.abhishek.parwal-ltspfs #

Tried this too:

ldmserver1:/tmp/.abhishek.parwal-ltspfs # chmod +x "-e0.7"
chmod: invalid option -- 'e'
Try `chmod --help' for more information.
ldmserver1:/tmp/.abhishek.parwal-ltspfs #

Those files look like devices (they would normally be in /dev), and are files that you should NOT be modifying.
What is "ltspfs"? it sounds like a remote file system.
If you somehow unmount or stop ltspfs, and then try deleting again, does that work?
I don't think you shouldn't remove or change these files while ltspfs is running.

Ya, we are trying to mount usb flash drive for the user which runs on LTSP server. What happens is that, sometimes if the UID is changed for the user he cannot access his pen drive so if we delete it from the /tmp and add a line of his UID in /etc/mtab, it starts working. So there is no harm to delete from the /tmp :slight_smile: