summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root/node.def
diff options
context:
space:
mode:
authorroot <root@io.vyatta.com>2008-07-14 14:59:07 -0700
committerroot <root@io.vyatta.com>2008-07-14 14:59:07 -0700
commit2d9868a5b7d97cd493c7035b9057784125f0fe9c (patch)
tree91c1feaf4153ed7a33a4a4013c9ee13cf6815629 /templates/service/ssh/allow-root/node.def
parentcb3ee94fd5e082b139ce6bfeee6130af195a6651 (diff)
downloadvyatta-cfg-system-2d9868a5b7d97cd493c7035b9057784125f0fe9c.tar.gz
vyatta-cfg-system-2d9868a5b7d97cd493c7035b9057784125f0fe9c.zip
Fix 3359: changing telnet setting drops other telnet sessions.
Diffstat (limited to 'templates/service/ssh/allow-root/node.def')
-rw-r--r--templates/service/ssh/allow-root/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index f476087d..9aa98826 100644
--- a/templates/service/ssh/allow-root/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -1,6 +1,7 @@
-type: bool
+type: txt
default: false
help: Enable/disable root login over ssh
+syntax:expression: $VAR(@) in "true", "false" ; "must be true or false"
update: if [ \"$VAR(@)\" == \"true\" ]; then
sudo ed - /etc/ssh/sshd_config <<-"EOF"
/^PermitRootLogin/s/no/yes/