Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I delete a file that does not have any file permissions ? I am not able to delete file forcefully or as superuser.

Please refer the screenshot: enter image description here

share|improve this question
    
what kind of remote filesystem is this? NAS? SAMBA? –  dawud Apr 22 '13 at 6:12
    
It's a Vmware hgfs. –  Bleamer Apr 22 '13 at 6:21
    
Can you change permissions on that file/directory? –  dawud Apr 22 '13 at 6:44
    
No, not able to do that either, even as root. –  Bleamer Apr 22 '13 at 7:47
    
More info please, the last time I've seen such a thing it was a defect harddisk. –  Bobby Apr 22 '13 at 12:09

1 Answer 1

Since you seemed to have mounted a folder from the VMware host, you will first need to make sure that you have the correct file permissions set on the host. Also, you can set the user and group ID of the mounted file system in /etc/fstab by adding defaults,ttl=5,uid=1000,gid=1000 to the mount line. For more details see for example this thread.

share|improve this answer
    
Why would this happening to this particular file, since I files in other folders on same FS, which read / write / execute successfully ? –  Bleamer Apr 22 '13 at 9:11
    
I suspect it's because the file has certain "special" permissions on the host FS or is in use by another process somewhere. –  Stefan Seidel Apr 22 '13 at 9:15
    
UUID=2082e860-95ae-4ef6-8198-45b911bcab37 / ext4 errors=remount-ro 0 1 The permission appear to be set correctly. –  Bleamer Apr 22 '13 at 9:17
    
Is that the host file system? Can you delete the file there? Have you done a fsck? –  Stefan Seidel Apr 22 '13 at 9:19
    
Yes, I am able to delete the file there (on the host file system), but i am keen on learning how to handle such a condition on native Linux machine. –  Bleamer Apr 22 '13 at 11:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.