summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-log-file
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/vyatta-show-log-file
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/vyatta-show-log-file')
-rwxr-xr-xscripts/vyatta-show-log-file8
1 files changed, 8 insertions, 0 deletions
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
+