aboutsummaryrefslogtreecommitdiffstats
path: root/modules/restrictshell
diff options
context:
space:
mode:
Diffstat (limited to 'modules/restrictshell')
-rw-r--r--modules/restrictshell/templates/sv_membersh.pl2
1 files changed, 2 insertions, 0 deletions
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 (<ERRORMSG>) {