From 92301fd9eaba31f0b3a3ded1e27663c790914ffa Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 16 Oct 2008 10:54:25 -0700 Subject: Need sudo when editing ssh config file --- templates/service/ssh/allow-root/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/service/ssh') 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 -- cgit v1.2.3