virus (locked) in my trash? - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Feb 14th, 2010, 10:34 AM   #1
Full Citizen
 
redhalton's Avatar
 
Join Date: Feb 2008
Location: Oakville, On
Posts: 148
virus (locked) in my trash?

Hi

I have a flash drive from a client and on the drive was a virus 'rejoice.exe' I stupidly moved it to my trash and now can't delete it because it's locked. I tried holding the option while selecting trash but it stubbornly won't delete. What's my next move?
redhalton is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old Feb 14th, 2010, 10:47 AM   #2
Honourable Citizen
 
screature's Avatar
 
Join Date: May 2007
Location: Aylmer (Gatineau) across the river from Ottawa
Posts: 16,081
How big is the drive? Can you move everything that is on it off to another drive, reformat it and then bring everything else back again?
screature is offline   Reply With Quote
Old Feb 14th, 2010, 10:54 AM   #3
Honourable Citizen
 
Join Date: Nov 2006
Posts: 11,988
The free utility Onyx includes a feature that allows you to force empty the trash. May work although obviously it was designed for volumes with a Mac format.
__________________
I retain all rights to images I have posted on ehMac. They were posted that other members of the community could enjoy them. They may not be used or sold in any other way without my written consent.

It's Un-Canadian to oppose a warming trend.
eMacMan is offline   Reply With Quote
Old Feb 14th, 2010, 11:19 AM   #4
Honourable Citizen
 
Join Date: Aug 2001
Location: Hamilton, ON
Posts: 2,262
Can you select the so called virus, select Get Info from the File Menu, and uncheck Locked?

Also if it doesn't work is it because another app is using the infected file?
That should be taken care of by a restart.
__________________
Mark Innes
minnes is offline   Reply With Quote
Old Feb 14th, 2010, 03:57 PM   #5
Resident Curmudgeon
 
SINC's Avatar
 
Join Date: Feb 2001
Location: Central Alberta
Posts: 60,918
Send a message via AIM to SINC
Quote:
Originally Posted by redhalton View Post
Hi

I have a flash drive from a client and on the drive was a virus 'rejoice.exe' I stupidly moved it to my trash and now can't delete it because it's locked. I tried holding the option while selecting trash but it stubbornly won't delete. What's my next move?
Here's your solution and it's free:

Force Empty Trash 1.0 software download - Mac OS X - VersionTracker
__________________
Visit my website:
St. Albert's Place On The Web
(Over 1.4 million folks have.)
SINC is offline   Reply With Quote
Old Feb 14th, 2010, 03:57 PM   #6
Full Citizen
 
redhalton's Avatar
 
Join Date: Feb 2008
Location: Oakville, On
Posts: 148
Thanks...

What I ended up doing--I simply dragged the bad file back onto the flashdrive which removed it from my 'Trash', ejected the flash drive and gave it back to the client telling them they needed to reformat the drive and to check their computers for this virus.

I didn't open it so I hope there isn't any harm done to my system.

Keeping my fingers crossed in Oakville ;-))
redhalton is offline   Reply With Quote
Old Feb 14th, 2010, 05:06 PM   #7
Honourable Citizen
 
screature's Avatar
 
Join Date: May 2007
Location: Aylmer (Gatineau) across the river from Ottawa
Posts: 16,081
Quote:
Originally Posted by redhalton View Post
Thanks...

What I ended up doing--I simply dragged the bad file back onto the flashdrive which removed it from my 'Trash', ejected the flash drive and gave it back to the client telling them they needed to reformat the drive and to check their computers for this virus.

I didn't open it so I hope there isn't any harm done to my system.

Keeping my fingers crossed in Oakville ;-))
No there won't be any damage done to your system unless you had a vitualized version of Windows (ala Parallels or Fusion etc.) open at the time and even then I am not sure if your virtualized Windows installation could be at risk on that front.

If it were the case perhaps someone with more expertise than myself in this area could chime in.
screature is offline   Reply With Quote
Old Feb 14th, 2010, 09:14 PM   #8
kps
Tritium Glow
 
kps's Avatar
 
Join Date: May 2003
Location: GTA & Beyond
Posts: 6,783
That file may not even been a virus. When you trash an item on removable media and do not empty the trash while the media is connected to your system, you get the issue you mentioned originally. All you really had to do is re-connect the flash drive and empty the trash.

OS X keeps several trash sub folders. If you explore invisible files and folders using the terminal, you'll see the invisible "dot" folders named .Trash and .Trashes. .Trashes will perhaps contain additional sub folders. This is the folder that would contain external "trashes" usually organized by UID (user id) based on who trashed what. Your UID will usually be 502 if you're the original admin. If you explore 502, you'll likely see the file and can remove it instantly using the rm command.
kps is offline   Reply With Quote
Old Feb 14th, 2010, 11:11 PM   #9
Full Citizen
 
Join Date: Oct 2007
Posts: 578
I'm pretty sure items on external media that are trashed are moved into a .Trash folder on that external media. In other words, they are not transfered to the boot volume/user profile .Trash directory. You can test this by emptying your Trash, connecting a USB drive and deleting a file. You'll see the Trash icon in your dock visibly fill. Eject the volume and you'll see it now appear as empty.
JustAMacUser is offline   Reply With Quote
Old Feb 15th, 2010, 11:44 AM   #10
kps
Tritium Glow
 
kps's Avatar
 
Join Date: May 2003
Location: GTA & Beyond
Posts: 6,783
Quote:
Originally Posted by JustAMacUser View Post
I'm pretty sure items on external media that are trashed are moved into a .Trash folder on that external media. In other words, they are not transfered to the boot volume/user profile .Trash directory. You can test this by emptying your Trash, connecting a USB drive and deleting a file. You'll see the Trash icon in your dock visibly fill. Eject the volume and you'll see it now appear as empty.
I didn't explain it well in the second paragraph. The Desktop/Finder Trash is a graphical representation of what could be several invisible "trash" folders located on different volumes. External trash folders are called ".Trashes" while the boot volume folder is called simply ".Trash". Inside these will be folders containing the uid of the user who removed the item. Looking through mine it shows 0 and 501 with 501 being me, the original admin account.

I think we all understand that when we trash something the OS just flags the file and frees up the space on the volume for an overwrite. The bulging waste basket is just a fancy representation, the file remains put.

I'll guess that transferring the exe file from the flash drive and consequent attempt to trash it, was more a permissions issue rather than an issue with locked items or it being a virus.

I've had similar issues myself with transferred files from external volumes having all kinds of different permissions set. In most cases this can be corrected through the Get Info dialog box.
kps is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trash won't empty radishsticks Mac, iPhone, iPad and iPod Help & Troubleshooting 0 Jul 10th, 2009 11:06 PM
Cannot Delete Folder in Trash kungfookiller Mac, iPhone, iPad and iPod Help & Troubleshooting 10 Oct 7th, 2008 09:11 PM
What a mess.. anti Virus software wreaks havoc - false positives MacDoc Anything Mac 2 Feb 22nd, 2006 11:51 AM
I need my trash to empty / it containd locked files speckledmind Mac, iPhone, iPad and iPod Help & Troubleshooting 12 Aug 16th, 2005 01:23 AM
Deleting hidden locked files in the trash M. Warren Mac, iPhone, iPad and iPod Help & Troubleshooting 8 Feb 22nd, 2005 09:17 AM


All times are GMT -4. The time now is 05:34 AM.



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!