New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Only show processes owned by the user?
How would you configure a linux box to where top or ps would only show the processes owned by the user? For example on a shell account I have, ps aux
shows just the following:
$ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND kuro 1389 0.0 0.0 81212 1732 ? S 00:06 0:00 sshd: kuro@pts/22 kuro 1390 0.0 0.0 104996 2040 pts/22 Ss 00:06 0:00 -bash kuro 2156 0.0 0.0 101932 1012 pts/22 R+ 00:46 0:00 ps aux kuro 31775 0.0 0.0 117292 1140 ? Ss Sep14 0:01 SCREEN -UdRR rtorrent rtorrent kuro 31776 1.0 0.1 319024 34416 pts/26 Ss+ Sep14 11:47 rtorrent
Comments
alias ps='ps -aux'
@Gary that is not what I am looking for.
Or just type it as
at the command line/prompt/thingie.
edit: Thanks
That again is not what I am looking for, what I am wanting to do is limit user accounts on one of my boxes to only be able to view their own processes, so that they cannot view other users processes.
Actually I thought it did that. I know on my DA boxes that we have and the CPanel boxes we lease, when I do a top or a ps or whatever, it only shows us what we have access to.
As far as I know, you must patch your kernel
http://grsecurity.net/
That is commonly used in shared hosting
I don't know how to do that in linux, but in freebsd it's a trivial thing
in sysctl.conf.
try this one
Yomero is right, you will need grsecurity TIL
@circus Yeah, I was wondering if there was something similar for linux, guess not.
@yomero Thanks, I'll try that out.