Results 1 to 6 of 6
  1. #1


    Member Since
    Jun 29, 2013
    Posts
    7
    Help Deleting a Directory/File
    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.

  2. #2

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,560
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    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.

  3. #3


    Member Since
    Jun 29, 2013
    Posts
    7
    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

  4. #4

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,560
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    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.

  5. #5

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    ls -le


    This will show the acls
    mike
    This machine kills fascists
    Got # ? phear the command line!

  6. #6

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,560
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    I looked at the man twice and didn't see the e switch
    Was trying to make sense of the @ switch. Getting too old.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Deleting Home Directory Files
    By rtainc in forum OS X - Operating System
    Replies: 2
    Last Post: 02-06-2013, 07:22 PM
  2. file in .vidalia directory
    By CobR in forum OS X - Operating System
    Replies: 1
    Last Post: 09-07-2009, 01:44 PM
  3. No such file or directory?
    By Perad in forum OS X - Operating System
    Replies: 2
    Last Post: 03-14-2008, 01:02 PM
  4. Finder - file directory
    By Lamboo in forum OS X - Operating System
    Replies: 1
    Last Post: 02-22-2008, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •