I have a few servers with an application for some clients, and I want to make an application available for the client to view the server and application status, and to be able to restart some services.
I already have done the major part of it, replacing the login shell of a ssh user with a custom shell script that presents him a menu with some options to do that. The menu is launched automatically with
NOPASSWD) once he logs in, because the script needs to restart system services. The problem is that I'd like him to view the output of
htop, but I don't want him being able to kill or renice processes and maybe other things that both
htop permits. I just want him viewing the output of
Is there any option, flag or equivalent command?