summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-03-12 14:43:24 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-03-12 14:43:24 -0700
commitee9178c72e1fff0eff2932297f039eb0345f26b1 (patch)
treec30de2361b9a11cac07cd0fed001da260c709260 /etc
parent9cb73b42bf97b3978c34290825a715b6400536bc (diff)
downloadvyatta-cfg-ee9178c72e1fff0eff2932297f039eb0345f26b1.tar.gz
vyatta-cfg-ee9178c72e1fff0eff2932297f039eb0345f26b1.zip
partial fix for bug 2987: use "less" instead of "more", and disable
"terminal" command for operator level.
Diffstat (limited to 'etc')
-rw-r--r--etc/default/vyatta-cfg1
-rw-r--r--etc/shell/level/users/allowed-op1
-rw-r--r--etc/shell/level/users/allowed-pipe2
3 files changed, 2 insertions, 2 deletions
diff --git a/etc/default/vyatta-cfg b/etc/default/vyatta-cfg
index d801239..7d189d8 100644
--- a/etc/default/vyatta-cfg
+++ b/etc/default/vyatta-cfg
@@ -44,6 +44,7 @@ else
# no need to check is_users since there are only 2 levels for now
declare -x -r VYATTA_USER_LEVEL_DIR=${vyatta_sysconfdir}/shell/level/users
declare -x -r LESSSECURE=1
+ alias more=less
fi
} 2>/dev/null || :
diff --git a/etc/shell/level/users/allowed-op b/etc/shell/level/users/allowed-op
index 498d120..4c8d16f 100644
--- a/etc/shell/level/users/allowed-op
+++ b/etc/shell/level/users/allowed-op
@@ -8,7 +8,6 @@ reboot
set
show
telnet
-terminal
traceroute
undebug
vpn
diff --git a/etc/shell/level/users/allowed-pipe b/etc/shell/level/users/allowed-pipe
index 3204ef3..2d92acc 100644
--- a/etc/shell/level/users/allowed-pipe
+++ b/etc/shell/level/users/allowed-pipe
@@ -1,4 +1,4 @@
-more
+less
1
no-more
1