From 21102b6edd4ec082266315f1d748381e10795e1e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 21 Apr 2011 15:39:41 +0000 Subject: show the group of a user in the error message, so people can check their member ship ( quite lowtech, I concede ) --- modules/restrictshell/templates/sv_membersh.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/restrictshell') diff --git a/modules/restrictshell/templates/sv_membersh.pl b/modules/restrictshell/templates/sv_membersh.pl index b3a62d83..88ff8a71 100644 --- a/modules/restrictshell/templates/sv_membersh.pl +++ b/modules/restrictshell/templates/sv_membersh.pl @@ -155,6 +155,8 @@ unless (-e "/etc/membersh-errormsg") { print STDERR "You tried to run a interactive shell.\n" } print STDERR "Sorry, you are not allowed to execute that command.\n"; + print STDERR "You are member of the following groups :\n"; + print STDERR qx(groups); } else { open(ERRORMSG, "< /etc/membersh-errormsg"); while () { -- cgit v1.2.1