Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Folks, within Terminal, I am unable to chown, chmod, rm -Rf, or shred -vfuz to a file. I can however "echo xyz > fileName. I can create, delete or alter other files. My objective is to delete the file and its parent directories but it will not vanquish. Background, the drive is a 750G USB from a Mac 10.6 used for backups of iPhoto and therein lies the bigger problem. I am using Ubuntu 12.03 as a file/media/print server on a cute little MSI netBook . Tis not an option to reFormat the drive. Thanks to all and may someone have the answer, please.

share|improve this question
Can you do these things using sudo? – barrydrake May 5 '12 at 13:17
What are both the permissions of file and directory the file resides? – Rinzwind May 5 '12 at 13:19
In desperation, I enabled the root account followed with "su -" and tried all the above as root. No luck. This file just will not go. file permissions are 777 – Monsignor.Leopold May 5 '12 at 13:29
1) What is the format of the drive (and if you run mount, I'm assuming mount shows it as being rw based on your comment about being able to create, delete, etc. other files) 2) Is there anything bizarre about the filename (special characters or what not) 3) Does /var/log/messages give any hints (you're need to be root to read it typically, though you can probably run dmesg to see the main stuff) 4) Are you running SE Linux (which shouldn't matter but just to rule out some bizarre cases) – Foon Jul 31 '12 at 2:41
This question appears to be abandoned and unanswered, could you perhaps add more detail to your question? If this question no longer applies then you can either delete it or answer it yourself if you've solved the problem. This is to help with the Ask Ubuntu Clean Up. If you feel this question is not abandoned, please flag the question explaining that. :) – Seth Jan 3 at 4:17

closed as too localized by Eliah Kagan, Luis Alvarado, belacqua, Javier Rivera, hhlp Jan 3 at 10:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Given that you don't own the files or directories, it is likely that the root user or adm group can. Try to delete the files with sudo rm -rf /directoryname.

share|improve this answer
can execute sudo and su – Monsignor.Leopold May 5 '12 at 13:33

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