Help Deleting a Directory/File

Joined
Jun 29, 2013
Messages
7
Reaction score
0
Points
1
I am a relatively new Mac convert from Windows so I am still figuring out the Terminal as most all of the commands are different than Windows command prompt.

I have a Mac Pro and bought a GoFlex Home NAS server for my Time Machine. I started Time Machine and it was working fine but during the process of the initial backup (about 65% complete) the Mac froze and I had to restart. I tried to continue the Backup and it gave me an error...

Long story short, I got Time Machine to create a new backup directory and complete a backup.

My problem is that I now have this file (I renamed it Delete during the process) that I cannot delete... how ironic, huh? When I try to delete it, it tells me Permission Denied. When I Show Info, it shows the owner a "0transmission" which is not me; I'm Clinton... nice to meet you :) I cannot add myself as an owner nor can I change the owner in OSX.

I have gone into Terminal and tried CHOWN and CHMOD, in standard access and SUDO. No matter what I do, it tells me permission denied when I try to run the RMDIR command. I entered LS -LA and it shows Clinton as the owner. Here is the output exactly:
Clintons-Mac-Pro:timemachinebackup Clinton$ ls -la
total 270
drwx------ 1 Clinton staff 16384 Jun 29 02:49 .
drwx------ 1 Clinton staff 16384 Jun 29 02:26 ..
drwx------ 1 Clinton staff 16384 Jun 29 02:26 .AppleDesktop
drwx------ 1 Clinton staff 16384 Jun 29 02:29 .AppleDouble
-rwx------ 1 Clinton staff 6148 Jun 29 02:47 .DS_Store
drwx------ 1 Clinton staff 16384 Jun 29 02:49 Clinton’s Mac Pro.sparsebundle
drwx------ 1 Clinton staff 16384 Jun 29 02:26 Network Trash Folder
drwx------ 1 Clinton staff 16384 Jun 29 02:26 Temporary Items
drwx------ 1 Clinton staff 16384 Jun 29 01:44 delete

I want to delete the file named "delete" at the bottom of the list but...

Clintons-Mac-Pro:timemachinebackup Clinton$ rm -r delete
rm: delete/delete/.AppleDouble/bf6c: Permission denied
rm: delete/delete/.AppleDouble: Directory not empty
rm: delete/delete: Directory not empty
rm: delete: Directory not empty

this "bf6c" file is some kind of remnant of the old backup and I want to delete it to TM doesn't get confused and try to use it or recover from it. If I navigate all the way down to that file and run LS -LA....

Clintons-Mac-Pro:.appledouble Clinton$ ls -la
total 66
drwx------ 1 Clinton staff 16384 Jun 29 00:39 .
drwx------ 1 Clinton staff 16384 Jun 29 00:44 ..
-rwx------ 1 Clinton staff 741 Jun 28 05:40 bf6c

Why can't I delete it? How do I delete it?

Sorry for the long post... Thanks for help.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Try this:
rm -dRf delete
This is assuming you are in the directory containing the delete directory.
What this does is try to delete the directory recursively and everything in it. The f switch means delete without the "are you sure" message no matter the permissions.
If this doesn't work we'll find something else.
 
OP
C
Joined
Jun 29, 2013
Messages
7
Reaction score
0
Points
1
Thanks cradom for replying. Results of command:

Clintons-Mac-Pro:timemachinebackup Clinton$ rm -dRf delete
rm: delete/delete/.AppleDouble/bf6c: Permission denied
rm: delete/delete/.AppleDouble: Directory not empty
rm: delete/delete: Directory not empty
rm: delete: Directory not empty

and in root...

bash-3.2# rm -dRf delete
rm: delete/delete/.AppleDouble/bf6c: Permission denied
rm: delete/delete/.AppleDouble: Directory not empty
rm: delete/delete: Directory not empty
rm: delete: Directory not empty
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Seems the problem is the file bf6c. Only idea I can come up with is:
Download ACLr8 https://www.macupdate.com/app/mac/32415/aclr8
Run this at your own risk. Maybe some else has another idea?
I'm thinking the problem is in the access controls which this app gets rid of. However, it does it to the WHOLE DRIVE which you may not want.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
ls -le


This will show the acls
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
I looked at the man twice and didn't see the e switch :(
Was trying to make sense of the @ switch. Getting too old.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top