From 03291945fd1c7bf5dcfcc61415b9ae749ffe962f Mon Sep 17 00:00:00 2001
From: Deepti Kulkarni <deepti@vyatta.com>
Date: Thu, 24 Jun 2010 02:08:02 +0000
Subject: Blocked user operator from using show tech-support. Added new show
 commands.

---
 templates/show/tech-support/save-uncompressed/node.def | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'templates/show/tech-support/save-uncompressed/node.def')

diff --git a/templates/show/tech-support/save-uncompressed/node.def b/templates/show/tech-support/save-uncompressed/node.def
index 71c774a..4036eaf 100644
--- a/templates/show/tech-support/save-uncompressed/node.def
+++ b/templates/show/tech-support/save-uncompressed/node.def
@@ -1,2 +1,7 @@
 help: Save consolidated tech-support report uncompressed 
-run: source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed 
+run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
+     then
+       source ${vyatta_datadir}/vyatta-op/functions/tech-support save-uncompressed 
+     else
+      echo Must be an admin user to run this command.
+     fi
-- 
cgit v1.2.3

