New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Help Deleting a Directory/File


Post Reply New Thread Subscribe

 
Thread Tools
clinton.coe

 
Member Since: Jun 29, 2013
Posts: 5
clinton.coe is on a distinguished road

clinton.coe is offline
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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,088
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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.
QUOTE Thanks
clinton.coe

 
Member Since: Jun 29, 2013
Posts: 5
clinton.coe is on a distinguished road

clinton.coe is offline
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
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,088
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
ls -le


This will show the acls

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,088
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
I looked at the man twice and didn't see the e switch
Was trying to make sense of the @ switch. Getting too old.
QUOTE Thanks

Post Reply New Thread Subscribe


« restore/install disc | People not recieving my emails »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Itunes: Deleting from hard drive after Deleting from itunes library huminflame Music, Audio, and Podcasting 3 12-02-2013 03:13 AM
Outlook 2011 deleting messages from inbox after deleting from Server jan86 OS X - Apps and Games 0 05-24-2012 09:52 PM
rsync deletes non existent files! qprfact OS X - Operating System 0 05-24-2010 04:04 PM
iPad - Deleting Files and External Keyboards Buzcut iPad Hardware and Accessories 0 04-20-2010 12:19 AM
Fastest way of deleting iTunes songs en masse? mainemce Music, Audio, and Podcasting 5 06-18-2008 06:26 PM

All times are GMT -4. The time now is 08:30 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?