I use Ubuntu Server 10.04. I have users that normally don't have access to sudo. When this user is using top command he sees only processes for the current user. I added a line to /etc/sudoers
:
user ALL = NOPASSWD: /usr/bin/top
But now we have access not only for a list of system processes, but also for killing them, which is not desired.
Is there any other way of doing this?