summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-28 09:30:04 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-28 10:11:57 -0800
commitd427aff1a7c7902e6eade012956c5ec9060cc60b (patch)
treee559f5c5dff49eca25ae1a3576886ac56b7767e1
parentb8300c77e22acb1569e15a4977be20ef3a7d5cfe (diff)
downloadvyatta-cfg-quagga-d427aff1a7c7902e6eade012956c5ec9060cc60b.tar.gz
vyatta-cfg-quagga-d427aff1a7c7902e6eade012956c5ec9060cc60b.zip
fix ssh allow-root template
Bugfix: 2909 1. Change name so telnet and ssh syntax are similar 2. Fix to always return true so update suceeds 3. No need to delete entry on removal of ssh service
-rw-r--r--templates/service/ssh/allow-root/node.def (renamed from templates/service/ssh/root-allowed/node.def)8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/service/ssh/root-allowed/node.def b/templates/service/ssh/allow-root/node.def
index 8c5a6fd9..f476087d 100644
--- a/templates/service/ssh/root-allowed/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -1,7 +1,6 @@
type: bool
-help: Allow root login over ssh
default: false
-help: Enable/disable root login
+help: Enable/disable root login over ssh
update: if [ \"$VAR(@)\" == \"true\" ]; then
sudo ed - /etc/ssh/sshd_config <<-"EOF"
/^PermitRootLogin/s/no/yes/
@@ -13,7 +12,4 @@ update: if [ \"$VAR(@)\" == \"true\" ]; then
wq
EOF
fi
-delete: sudo ed - /etc/ssh/sshd_config <<-"EOF"
- /^PermitRootLogin/s/yes/no/
- wq
- EOF
+ /bin/true