From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-sysadm/2010-November/000889.html | 98 +++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2010-November/000889.html (limited to 'zarb-ml/mageia-sysadm/2010-November/000889.html') diff --git a/zarb-ml/mageia-sysadm/2010-November/000889.html b/zarb-ml/mageia-sysadm/2010-November/000889.html new file mode 100644 index 000000000..9cab653e8 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2010-November/000889.html @@ -0,0 +1,98 @@ + + + + [Mageia-sysadm] [452] - improve error message when trying to get a interactive shell + + + + + + + + + +

[Mageia-sysadm] [452] - improve error message when trying to get a interactive shell

+ root at mageia.org + root at mageia.org +
+ Wed Nov 24 12:14:33 CET 2010 +

+
+ +
Revision: 452
+Author:   misc
+Date:     2010-11-24 12:14:33 +0100 (Wed, 24 Nov 2010)
+Log Message:
+-----------
+- improve error message when trying to get a interactive shell
+
+Modified Paths:
+--------------
+    puppet/modules/restrictshell/templates/sv_membersh.pl
+
+Modified: puppet/modules/restrictshell/templates/sv_membersh.pl
+===================================================================
+--- puppet/modules/restrictshell/templates/sv_membersh.pl	2010-11-24 02:50:45 UTC (rev 451)
++++ puppet/modules/restrictshell/templates/sv_membersh.pl	2010-11-24 11:14:33 UTC (rev 452)
+@@ -149,7 +149,11 @@
+ }
+ 
+ unless (-e "/etc/membersh-errormsg") {
+-    print STDERR "You tried to execute: @ARGV[1..$#ARGV]\n";
++    if ($ARGV) {
++        print STDERR "You tried to execute: @ARGV[1..$#ARGV]\n";
++    } else {
++        print STDERR "You tried to run a interactive shell.\n"
++    }
+     print STDERR "Sorry, you are not allowed to execute that command.\n";
+ } else {
+     open(ERRORMSG, "< /etc/membersh-errormsg");
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: </pipermail/mageia-sysadm/attachments/20101124/d2c67679/attachment.html>
+
+ + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-sysadm +mailing list
+ -- cgit v1.2.1