Locked File Deletion

AFPoster

macrumors 68000
Original poster
Jul 14, 2008
1,522
101
Charlotte, NC
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?
 

Bennieboy©

macrumors 65816
Jan 15, 2009
1,278
1
england
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?
google says theyre malware, if you cant remove them then format the drive ;)
 

angelwatt

Moderator emeritus
Aug 16, 2005
7,857
7
USA
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.
 

AFPoster

macrumors 68000
Original poster
Jul 14, 2008
1,522
101
Charlotte, NC
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.
Wow thank you that worked perfectly. A lot better than what Apple told me to do.