From owner-freebsd-questions Wed Jan 30 21:26:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from svr3.applink.net (svr3.applink.net [206.50.88.3]) by hub.freebsd.org (Postfix) with ESMTP id 7979A37B404 for ; Wed, 30 Jan 2002 21:26:20 -0800 (PST) Received: from home.ashavan.org. (pri12-10-78.applink.net [216.91.197.78]) by svr3.applink.net (8.12.1/8.12.1) with ESMTP id g0V5PxSr028777; Wed, 30 Jan 2002 23:26:00 -0600 Received: from there (argent.home.ashavan.org [172.16.10.50]) by home.ashavan.org. (8.11.6/8.11.6) with SMTP id g0V5NfL29838; Thu, 31 Jan 2002 05:23:52 GMT Message-Id: <200201310523.g0V5NfL29838@home.ashavan.org.> Content-Type: text/plain; charset="iso-8859-1" From: Timothy Covell Reply-To: timothy.covell@ashavan.org To: "ekoz" , Subject: Re: ps -aux Date: Wed, 30 Jan 2002 23:25:45 -0600 X-Mailer: KMail [version 1.3.2] References: <021901c1aa11$fe562930$d4e18aca@melsa.net.id> In-Reply-To: <021901c1aa11$fe562930$d4e18aca@melsa.net.id> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 30 January 2002 22:44, ekoz wrote: > Hi All, > > I have a silly question..:) , How to make "ps -aux" only show user's > process not all the process and how to make my shell server more secure. > By the way , its about 10 to 20 user log in to my server. > > TIA > ekoz Do you mean user's or users'? I would read the man page if I were you, but: ps -a means show all processes with a tty ps -u extended user information ps -x show even those w/o a controlling terminal So, you want ps -ux to show good detail on all of YOUR processes (i.e. user's) To see everyone's processes except for root (i.e. users'), then ps -aux |grep -v "^root" should do the trick. -- timothy.covell@ashavan.org. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message