I'm trying to set up an environment where a number of users in a certain group can SSH into a server and then execute a set of predefined commands on it, using either a key exchange or a password. So far I've been told to look into the authorized_keys "commands" section, but as far as I can tell this is only useful for non-human users.
Is there a way to either blacklist or whitelist a number of commands for a certain user group?
For example, users in group X should be able to ls
, /etc/init.d
, rm
, but nothing else.