Locked File Deletion

Discussion in 'Mac Basics and Help' started by AFPoster, Apr 3, 2010.

  1. AFPoster macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #1
    I have a portable harddrive (Western Digital) for my Mac. I plugged it into my buddies Windows computer to copy some movie files that I am editing for our film. When I replugged my computer back into my Mac I had these 3 files on it:
    autorun.inf haihaep.exe hailhaep.scr
    They are all locked and it won't let me unlock these files to delete them, any ideas?
     
  2. Bennieboy© macrumors 65816

    Bennieboy©

    Joined:
    Jan 15, 2009
    Location:
    england
    #2
    google says theyre malware, if you cant remove them then format the drive ;)
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    Yea, it looks like your buddies computer was infected and infected your external HD. It won't effect for Mac at least, but will infect any Windows machine you connect it to.

    Deletion option:
    Open Terminal: sudo rm path to file

    Easy way to get the path in is the drag the file from Finder to the Terminal window. Just make sure you have a space after the rm. Do this for each file. The command will ask for your password the first time and you'll need to be an administrator.
     
  4. AFPoster thread starter macrumors 65816

    Joined:
    Jul 14, 2008
    Location:
    Charlotte, NC
    #4
    Wow thank you that worked perfectly. A lot better than what Apple told me to do.
     

Share This Page