LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-22-2014, 02:42 PM   #1
AK-33
Member
 
Registered: Aug 2010
Location: Canada
Posts: 31

Rep: Reputation: 2
(In)significance of [... ] and tty root processes


A colleague of mine assigned me to perform a root-cause analysis of an enterprise security server sometime ago. We knew the problem resided in one of the processes run by root but did not know which one.

I first began my research by issuing the command:

ps -aux | grep -v grep | grep root

This returned a list of several dozen processes. My colleague then helped me optimize my search with this command:

ps -aux | grep -v grep | grep root | grep -Ev '[[]'| grep -v tty

This new command reduced the list of processes returned significantly, and we soon found the problem. The latter two parts of the command filter out

1) processes surrounded by [ ], such as [ksoftirqd/0]
2) processes running via teletype terminal

ps(1) tells me that processes with arguments that cannot be located are placed in square brackets (not sure what this means), and tty is just a predecessor of the modern bash terminal. However, I still do not understand their significance (or should I say insignificance) as to why we could've just eliminated them from the more "fruitful" root processes.

Would anyone be able to shed some light here?
 
Old 11-23-2014, 07:34 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,161

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Processes in square brackets are kernel processes. They aren't helpful if you're just looking for user processes. Most daemon processes fork so they have no tty and can run independently.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to see what another root tty is doing? permalac Linux - Server 7 10-29-2008 03:17 AM
alias for user to gain root tty with no passwd officecase Linux - General 2 05-11-2007 11:05 AM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 11:55 AM
My processes with root priviledge SiLiCoN Linux - General 2 10-04-2004 04:57 AM
Preventing root processes... znapper Linux - Security 5 03-18-2004 12:18 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration