summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-16 10:54:25 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-16 10:54:25 -0700
commit92301fd9eaba31f0b3a3ded1e27663c790914ffa (patch)
tree55b940ef3054fdce94962049587917d57aaf9dff
parentb48beb78f51cea17ff967ad693d2380030e629af (diff)
downloadvyatta-cfg-quagga-92301fd9eaba31f0b3a3ded1e27663c790914ffa.tar.gz
vyatta-cfg-quagga-92301fd9eaba31f0b3a3ded1e27663c790914ffa.zip
Need sudo when editing ssh config file
-rw-r--r--templates/service/ssh/allow-root/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index 21c85e59..87ff1ded 100644
--- a/templates/service/ssh/allow-root/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -5,4 +5,4 @@ update: if [ "$VAR(@)" == "true" ];
then regex='/^PermitRootLogin/s/no/yes/'
else regex='/^PermitRootLogin/s/yes/no/'
fi
- sed -i -e "$regex" /etc/ssh/sshd_config
+ sudo sed -i -e "$regex" /etc/ssh/sshd_config