diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-16 10:54:25 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-16 10:54:25 -0700 |
commit | 92301fd9eaba31f0b3a3ded1e27663c790914ffa (patch) | |
tree | 55b940ef3054fdce94962049587917d57aaf9dff /templates/service | |
parent | b48beb78f51cea17ff967ad693d2380030e629af (diff) | |
download | vyatta-cfg-system-92301fd9eaba31f0b3a3ded1e27663c790914ffa.tar.gz vyatta-cfg-system-92301fd9eaba31f0b3a3ded1e27663c790914ffa.zip |
Need sudo when editing ssh config file
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 |