summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2008-10-07 17:49:01 -0700
committerslioch <slioch@eng-140.vyatta.com>2008-10-07 17:49:01 -0700
commit2d73e504545f05cd7b9a7f561e319d1f21ee8bcc (patch)
tree58c1d9e0838527a63d949061db553c6ffb95811d /templates/service/ssh/allow-root
parentd9a65a4f20304c60fbf1b112f0f763155437596f (diff)
downloadvyatta-cfg-system-2d73e504545f05cd7b9a7f561e319d1f21ee8bcc.tar.gz
vyatta-cfg-system-2d73e504545f05cd7b9a7f561e319d1f21ee8bcc.zip
Revert "Change allow-root nodes to boolean"
This reverts commit 7232e04d5d021f60e4cf6463328c165f19d56c6c.
Diffstat (limited to 'templates/service/ssh/allow-root')
-rw-r--r--templates/service/ssh/allow-root/node.def8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index 058735ed..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/
@@ -12,7 +13,4 @@ update: if [ \"$VAR(@)\" == \"true\" ]; then
wq
EOF
fi
-comp_help: possible completions:
- true Allow root to login over ssh
- false Don't allow root to login over ssh(default)
-
+ /bin/true