From owner-freebsd-questions Thu May 2 11:12: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from linux.lnk.lt (linux.lnk.lt [195.12.175.45]) by hub.freebsd.org (Postfix) with SMTP id 3B9EB37B41A for ; Thu, 2 May 2002 11:11:58 -0700 (PDT) Received: (qmail 10181 invoked from network); 2 May 2002 20:11:55 +0200 Received: from unknown (HELO mantas) (195.12.175.42) by 0 with SMTP; 2 May 2002 20:11:55 +0200 Message-ID: <003101c1f204$d7db9ed0$2e01010a@mantas> Reply-To: "Mantas Smelevicius" From: "Mantas Smelevicius" To: "default" , "FreeBSD-Questions" References: Subject: Re: Restricting PS Use Date: Thu, 2 May 2002 20:11:55 +0200 Organization: FreeBSD.lt comunity MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 sysctl kern.ps_showallprocs=0 and ajust line to /etc/sysctl.conf [8:09pm] mantas@ona:~>cat /etc/sysctl.conf | grep ps kern.ps_showallprocs=0 [8:10pm] mantas@ona:~> Result: -------------------------- [8:11pm] mantas@ona:~>ps faux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND mantas 332 0.0 0.0 1020 0 ?? Is 11Apr02 0:01.75 bnc mantas 412 0.0 3.5 3068 1548 p0- S 11Apr02 17:34.08 ./eggdrop papaj.conf (eggdrop-1.6.10) mantas 26202 0.0 3.7 2988 1624 p3- S Tue01PM 1:28.19 ./eggdrop deamon.conf (eggdrop-1.6.10) mantas 32571 0.0 10.3 9444 4552 ?? S 2:06PM 0:38.73 BitchX trenktaz -H esu.as (BitchX-1.0c18) mantas 33340 0.0 2.2 1316 976 p0 Ss 8:09PM 0:00.13 -tcsh (tcsh) mantas 33353 0.0 0.6 396 244 p0 R+ 8:11PM 0:00.00 ps faux [8:11pm] mantas@ona:~> --------------------------- Mantas Smelevicius Head of IT division LNK TV Lukiskiu 5, 3000 Vilnius Lithuania http://www.mantas.lt ICQ UIN 31072511 ----- Original Message ----- From: "default" To: "FreeBSD-Questions" Sent: Thursday, May 02, 2002 6:58 PM Subject: Restricting PS Use > Hello, > > I have been trying to get this working for a long time to no avail, but... > > Basically I need to restrict the PS command so that normal users are only > able to see their own processes... > > I would appreciate any suggestion on how to do this... > > Thank you > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message