Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 20:11:55 +0200
From:      "Mantas Smelevicius" <bsd@mantas.lt>
To:        "default" <default013subscriptions@hotmail.com>, "FreeBSD-Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Restricting PS Use
Message-ID:  <003101c1f204$d7db9ed0$2e01010a@mantas>
References:  <OE21UVOpIxvH4wBnGbw00005291@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <default013subscriptions@hotmail.com>
To: "FreeBSD-Questions" <freebsd-questions@freebsd.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003101c1f204$d7db9ed0$2e01010a>