From 7232e04d5d021f60e4cf6463328c165f19d56c6c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 7 Oct 2008 17:10:25 +0200 Subject: Change allow-root nodes to boolean These are boolean, not text fields. Only allowed value is true/false --- templates/service/ssh/allow-root/node.def | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'templates/service/ssh/allow-root/node.def') diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def index 9aa98826..058735ed 100644 --- a/templates/service/ssh/allow-root/node.def +++ b/templates/service/ssh/allow-root/node.def @@ -1,7 +1,6 @@ -type: txt +type: bool 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/ @@ -13,4 +12,7 @@ update: if [ \"$VAR(@)\" == \"true\" ]; then wq EOF fi - /bin/true +comp_help: possible completions: + true Allow root to login over ssh + false Don't allow root to login over ssh(default) + -- cgit v1.2.3