Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Only show processes owned by the user?
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.

Only show processes owned by the user?

KuroKuro Member
edited September 2011 in General

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
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


  • alias ps='ps -aux'

    Thanked by 1drmike
  • @Gary that is not what I am looking for.

  • drmikedrmike Member
    edited September 2011

    Or just type it as

    ps -aux

    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.

  • yomeroyomero Member
    edited September 2011

    As far as I know, you must patch your kernel

    That is commonly used in shared hosting

    Thanked by 1LowEndAdmin
  • I don't know how to do that in linux, but in freebsd it's a trivial thing


    in sysctl.conf.

  • try this one

    ps -u username
  • 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.

Sign In or Register to comment.