summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 18:53:56 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 18:53:56 -0800
commit4dbba52a5b7e97d55ea7c4f957f594204350b9b2 (patch)
tree43bf92447f731628b831902f8b2253022b75a11a /scripts
parent478334deb755f9b31fccffdde92971516863dbff (diff)
downloadvyatta-op-4dbba52a5b7e97d55ea7c4f957f594204350b9b2.tar.gz
vyatta-op-4dbba52a5b7e97d55ea7c4f957f594204350b9b2.zip
* restrict "users" level sudo permissions to the "sudo-users" directory.
* add wrappers for show commands requiring sudo and put them in "sudo-users" directory.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-ethtool-wrapper4
-rwxr-xr-xscripts/vyatta-show-log4
-rwxr-xr-xscripts/vyatta-show-log-file8
3 files changed, 16 insertions, 0 deletions
diff --git a/scripts/vyatta-ethtool-wrapper b/scripts/vyatta-ethtool-wrapper
new file mode 100755
index 0000000..8753bd6
--- /dev/null
+++ b/scripts/vyatta-ethtool-wrapper
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+ethtool "$@"
+
diff --git a/scripts/vyatta-show-log b/scripts/vyatta-show-log
new file mode 100755
index 0000000..10e46e5
--- /dev/null
+++ b/scripts/vyatta-show-log
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cat /var/log/messages
+
diff --git a/scripts/vyatta-show-log-file b/scripts/vyatta-show-log-file
new file mode 100755
index 0000000..1f8a0ef
--- /dev/null
+++ b/scripts/vyatta-show-log-file
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -f /var/log/user/$1 ]; then
+ cat /var/log/user/$1
+else
+ echo "No such log file"
+fi
+