diff options
Diffstat (limited to 'templates/service')
-rw-r--r-- | templates/service/ssh/allow-root/node.def | 2 |
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 |