Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#311510 - 23/06/2008 13:58 Mac newbie question: Background system processes?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
I use the latest BitTorrent client software to grab the current Doctor Who episodes. Depending on where I happen to be that Saturday, I do it either on a PC or on a Mac.

I noticed on the PC that it installed a secondary product called "DNA" which is a new feature, a background streaming server based on BitTorrent technology. This is a separate feature from BitTorrent, and is unrelated to the file sharing aspects of BitTorrent. Unlike BitTorrent itself, DNA runs without my knowledge and without an icon to indicate its presence. This made me angry, so I googled around and found out how to remove it. (btdna.exe /uninstall)

Even if it hadn't had the convenient uninstall command line built in, there are a few different ways on the PC that I can detect the presence of such a thing and prevent it from running. Being a long-time PC user, I know most of these methods.

But when it comes to similar sleuthing on the Mac, I've got no idea where to start. I'm assuming, since I installed the same BitTorrent version on the Mac as I did on the PC, the Mac version must also include this background streaming service. How do I find it and exterminate it?

I asked this question a few days ago on the BitTorrent forums, hoping to get an answer that was specific to BitTorrent. But I've had no responses, and now I'm curious about the generic case. In the generic sense (i.e., for any process, not just DNA), what are the steps to determine what's running in the background, and how would you remove such a background service, on the Mac?

PS: Please, no discussions about which BitTorrent client I *should* be using instead of the one I am using. We can do that in another thread if you want.
_________________________
Tony Fabris

Top
#311511 - 23/06/2008 14:26 Re: Mac newbie question: Background system processes? [Re: tfabris]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
List all the running processes:

Code:
ps -A


Find the naughty process id then:

Code:
kill -SIGKILL pid


To kill it off.


Edited by andym (23/06/2008 14:29)
_________________________
Cheers,

Andy M

Top
#311512 - 23/06/2008 14:31 Re: Mac newbie question: Background system processes? [Re: andym]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Though of course you'll need to do more than that to stop the process getting run again in the future.
_________________________
Remind me to change my signature to something more interesting someday

Top
#311513 - 23/06/2008 14:41 Re: Mac newbie question: Background system processes? [Re: andy]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Yes, but that's probably a considerably longer reply. I'd be interested to see if there was anything running in the first place.
_________________________
Cheers,

Andy M

Top
#311514 - 23/06/2008 15:33 Re: Mac newbie question: Background system processes? [Re: tfabris]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
What Andy said... But from a GUI, you can run Activity Monitor. From there you can also quit or force quit processes and applications.

The most obvious places to look for evidence of such a process launching at startup is in the various locations used to store your list of start items. wink

The first place is Login Items:
System Preferences -> Accounts -> Your User Account -> Login Items tab

Items listed in there get launched when your user account gets logged in. Remove an item to stop it from being launched. Note that some programs also have preferences to control this, so you might want to look at the prefs for your BT client. That will also make sure the login item doesn't get auto-repaired the next time you launch the BT client.

You can also look in:
/Library/Preferences/com.apple.loginitems.plist

That's where some items that get launched for ALL users get launched at login. The file is best viewed with Property List Editor which is part of the developer tools install.

From there you can read about launchd which is now beyond the scope of my quick reply. smile

http://developer.apple.com/macosx/launchd.html

Bruno
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#311515 - 23/06/2008 17:18 Re: Mac newbie question: Background system processes? [Re: hybrid8]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I always have Activity Monitor running on every PC (pet peeve, PC is a personal computer, not Windows) machine running OS X that I use. One handy thing with it is to set the dock icon to show CPU History (under the view menu). This lets me keep an eye on the processor usage without needing something like iStat Menus.

Top
#311516 - 23/06/2008 17:28 Re: Mac newbie question: Background system processes? [Re: drakino]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Originally Posted By: drakino
I always have Activity Monitor running on every PC (pet peeve, PC is a personal computer, not Windows) machine running OS X that I use.

Pet peeve: redundant noun phrases:

"I always have Activity Monitor running on every personal computer machine running OS X that I use."
_________________________
Bitt Faulk

Top
#311517 - 23/06/2008 17:47 Re: Mac newbie question: Background system processes? [Re: wfaulk]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
Originally Posted By: wfaulk
Pet peeve: redundant noun phrases:


Tom might have just accidentally inserted the brace one word too early. Maybe he meant "Windows machine)" wink

_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#311518 - 23/06/2008 17:48 Re: Mac newbie question: Background system processes? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Originally Posted By: drakino
(pet peeve, PC is a personal computer, not Windows)


Agreed, but it's common usage to say "Mac" or "PC" to distinguish between the two platforms, the terms are even used that way in Apple's own TV ads, so you can't really fault me there.

Back to topic: Thanks very much, everyone, for the detailed and useful answers. I'll give that stuff a shot when I get back home to the Mac this evening.
_________________________
Tony Fabris

Top
#311520 - 23/06/2008 18:25 Re: Mac newbie question: Background system processes? [Re: tfabris]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Quote:
Pet peeve: redundant noun phrases:

Fair enough. It's what I get for going back and rewording that sentence.

Quote:
the terms are even used that way in Apple's own TV ads, so you can't really fault me there.

The ads annoy me just as much for the same reason. Just like someone asking "So is that an iPod for the car" when talking about the empeg :-)

Top
#311529 - 24/06/2008 09:54 Re: Mac newbie question: Background system processes? [Re: drakino]
sn00p
addict

Registered: 24/07/2002
Posts: 618
Loc: South London
Historially yes, but the meanings of many words adapt over time.

Much like "Pop Music" (aka. Popular Music) now generally defines a particular genre of music, rather than something just being "popular".

Mac & PC? I consider them to be different even though I'm more than aware of the underlying meaning.

I do, however usually use the word "Wintel" to avoid any ambiguity!

Top
#311531 - 24/06/2008 14:15 Re: Mac newbie question: Background system processes? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Okay, the results of ps -A shows nothing in the process list that remotely resembles the BTDNA process. So I guess it wasn't installed on the Mac version after all.

Thanks for your help, everyone!
_________________________
Tony Fabris

Top
#311533 - 24/06/2008 15:48 Re: Mac newbie question: Background system processes? [Re: drakino]
davekirk
journeyman

Registered: 02/04/2002
Posts: 56
Loc: Las Vegas
Quote:
"pet peeve, PC is a personal computer, not Windows machine"


Yes, that is the original definition. But the common substitution of simply saying "PC" instead of "PC running a Microsoft OS" began when IBM named their first PC (in the original sense) the "IBM PC". IBM PC compatible machines were called "PC clones", and later also simply "PCs". Subsequently, any machine running a Microsoft OS from DOS through all the various versions of Windows has been identified as a "PC".
It's somewhat analogous to why we often call the U.S.A. "America". Because although there are many other nations in North, Central and South America; none of them has the actual word "America" in their names.

Top
#311534 - 24/06/2008 17:42 Re: Mac newbie question: Background system processes? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Originally Posted By: tfabris
Okay, the results of ps -A shows nothing in the process list that remotely resembles the BTDNA process. So I guess it wasn't installed on the Mac version after all.


Wait. The Mac OS is all about least-privilege these days. Do I need to execute some kind of an elevation command, prior to the ps -A command, so that it will show all processes for all users and system items?
_________________________
Tony Fabris

Top
#311535 - 24/06/2008 17:52 Re: Mac newbie question: Background system processes? [Re: tfabris]
andym
carpal tunnel

Registered: 17/01/2002
Posts: 3996
Loc: Manchester UK
Looking at the man page:

Code:
-A : Display information about other users' processes including those without controlling terminals


You should be good.
_________________________
Cheers,

Andy M

Top
#311536 - 24/06/2008 18:36 Re: Mac newbie question: Background system processes? [Re: andym]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Awesome, thanks!
_________________________
Tony Fabris

Top
#311537 - 24/06/2008 19:59 Re: Mac newbie question: Background system processes? [Re: tfabris]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Also, Activity Monitor, when set to "All Processes" does the same thing as ps -A.

Pretty much no harm in letting users see what the machine is running, unless someone is putting their password as a command line argument into a program that doesn't mask that out of the process listing.

Never did understand Microsoft's decision to force an elevation to see all processes in Vista. The 30+ years of UNIX users being able to see everything hasn't been a problem.

Top
#311538 - 24/06/2008 20:14 Re: Mac newbie question: Background system processes? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Originally Posted By: drakino
Never did understand Microsoft's decision to force an elevation to see all processes in Vista.


Perhaps to keep malware from searching for and then doing naughty things to other processes? I dunno how that stuff works.
_________________________
Tony Fabris

Top
#311539 - 24/06/2008 20:50 Re: Mac newbie question: Background system processes? [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Which it would need elevated privileges to do, which, if it has them, you're already screwed.
_________________________
Bitt Faulk

Top
#311540 - 25/06/2008 01:17 Re: Mac newbie question: Background system processes? [Re: tfabris]
gbeer
carpal tunnel

Registered: 17/12/2000
Posts: 2665
Loc: Manteca, California
Originally Posted By: tfabris
Originally Posted By: drakino
Never did understand Microsoft's decision to force an elevation to see all processes in Vista.


Perhaps to keep malware from searching for and then doing naughty things to other processes? I dunno how that stuff works.


More likely so corporate spyware can remain hidden.
_________________________
Glenn

Top
#311542 - 25/06/2008 04:14 Re: Mac newbie question: Background system processes? [Re: gbeer]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31596
Loc: Seattle, WA
Ah. Good point.
_________________________
Tony Fabris

Top
#311543 - 25/06/2008 11:50 Re: Mac newbie question: Background system processes? [Re: drakino]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: drakino
Never did understand Microsoft's decision to force an elevation to see all processes in Vista.


What about someone who'd prefer that his wife and kids don't see that he's running MonkeyPr0nDownloader.exe in his account?
_________________________
-- roger

Top
#311544 - 25/06/2008 12:06 Re: Mac newbie question: Background system processes? [Re: Roger]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
Originally Posted By: Roger
What about someone who'd prefer that his wife and kids don't see that he's running MonkeyPr0nDownloader.exe in his account?


What kind of self-respecting, porn-downloading man doesn't have his own personal computer, off-limits to the wife, and should you have them, kids? Besides, if you can't share your porn with your wife and kids, you've got one messed up family. wink

_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#311545 - 25/06/2008 15:15 Re: Mac newbie question: Background system processes? [Re: hybrid8]
frog51
pooh-bah

Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
Agree with Bruno - wives and kids should have accounts in VMs, so they can't break anything:-)
_________________________
Rory
MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi
MkII, 240Gb in Mark Lord dock
MkII, 80Gb SSD in dock

Top
#311560 - 26/06/2008 03:53 Re: Mac newbie question: Background system processes? [Re: frog51]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: frog51
Agree with Bruno - wives and kids should have accounts in VMs, so they can't break anything:-)


Well, it was a hypothetical, but the wife has her own non-admin account, so she can't break anything except her own account; and Charlie's motor skills aren't up to using a computer yet (he's only 7 weeks old, give him time).
_________________________
-- roger

Top
#311630 - 28/06/2008 09:51 Re: Mac newbie question: Background system processes? [Re: Roger]
julf
veteran

Registered: 01/10/2001
Posts: 1307
Loc: Amsterdam, The Netherlands
Originally Posted By: Roger
Charlie's motor skills aren't up to using a computer yet (he's only 7 weeks old, give him time).


"Give him time"? What kind of parents are you? You are not doing him any favours by being touchy-feely at the wrong time. Don't you realize that kids need to be given crucial life skills early enough to stay competitive in tomorrow's global workspace and knowledge economy?

Top