diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-21 15:39:41 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-21 15:39:41 +0000 |
commit | 21102b6edd4ec082266315f1d748381e10795e1e (patch) | |
tree | c9d6c36714a4776331ce7143dd60a650fad10b25 /modules/restrictshell | |
parent | 222052fd356895970a97a4d70f8a088770284d3f (diff) | |
download | puppet-21102b6edd4ec082266315f1d748381e10795e1e.tar puppet-21102b6edd4ec082266315f1d748381e10795e1e.tar.gz puppet-21102b6edd4ec082266315f1d748381e10795e1e.tar.bz2 puppet-21102b6edd4ec082266315f1d748381e10795e1e.tar.xz puppet-21102b6edd4ec082266315f1d748381e10795e1e.zip |
show the group of a user in the error message, so people can check their
member ship ( quite lowtech, I concede )
Diffstat (limited to 'modules/restrictshell')
-rw-r--r-- | modules/restrictshell/templates/sv_membersh.pl | 2 |
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>) { |