diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 18:53:56 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 18:53:56 -0800 |
commit | 4dbba52a5b7e97d55ea7c4f957f594204350b9b2 (patch) | |
tree | 43bf92447f731628b831902f8b2253022b75a11a /scripts | |
parent | 478334deb755f9b31fccffdde92971516863dbff (diff) | |
download | vyatta-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-x | scripts/vyatta-ethtool-wrapper | 4 | ||||
-rwxr-xr-x | scripts/vyatta-show-log | 4 | ||||
-rwxr-xr-x | scripts/vyatta-show-log-file | 8 |
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 + |