From 0c0ff102b3be6cdc413120639221cdcda32e91ed Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 7 Feb 2016 18:57:08 +0000 Subject: Force sv_membersh.pl in ssh on duvel That way we don't need to have it as default shell for everyone on the machine It should probably not hardcode duvel though --- modules/openssh/templates/sshd_config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openssh/templates/sshd_config b/modules/openssh/templates/sshd_config index 27eee0f1..7c6146fd 100644 --- a/modules/openssh/templates/sshd_config +++ b/modules/openssh/templates/sshd_config @@ -121,3 +121,7 @@ Subsystem sftp <%= path_to_sftp %>/sftp-server # X11Forwarding no # AllowTcpForwarding no # ForceCommand cvs server +<% if @hostname == 'duvel' then %> +Match User !schedbot User !root + ForceCommand /usr/local/bin/sv_membersh.pl -c "$SSH_ORIGINAL_COMMAND" +<% end %> -- cgit v1.2.1