Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
Source Link
evachristine
  • 2.7k
  • 11
  • 43
  • 57

How to exclude from a "Match Group" in SSHD?

There is a Match group in the SSHD config:

cat /etc/ssh/sshd_config ... Match Group FOOGROUP ForceCommand /bin/customshell ... 

There are many users on the machine that are in the "FOOGROUP".

My question: How can I exclude a given user that is in the "FOOGROUP" from the "Match Group"?