diff options
author | Mark O'Brien <mobrien@vyatta.com> | 2008-02-27 12:49:50 -0800 |
---|---|---|
committer | Mark O'Brien <mobrien@vyatta.com> | 2008-02-27 12:49:50 -0800 |
commit | da7111ff02d0ca66038a360c3d95dbea3f72c3a4 (patch) | |
tree | 9b87fc78193491d86e37bb3ea41f01cdc3018a2c /templates/service/ssh/root-allowed | |
parent | 9d0f9ba61af13a074fd9c376e16424f270611cd0 (diff) | |
parent | b8300c77e22acb1569e15a4977be20ef3a7d5cfe (diff) | |
download | vyatta-cfg-quagga-da7111ff02d0ca66038a360c3d95dbea3f72c3a4.tar.gz vyatta-cfg-quagga-da7111ff02d0ca66038a360c3d95dbea3f72c3a4.zip |
Merge branch 'glendale' of git:/git/vyatta-cfg-system into glendale
Diffstat (limited to 'templates/service/ssh/root-allowed')
-rw-r--r-- | templates/service/ssh/root-allowed/node.def | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/service/ssh/root-allowed/node.def b/templates/service/ssh/root-allowed/node.def new file mode 100644 index 00000000..8c5a6fd9 --- /dev/null +++ b/templates/service/ssh/root-allowed/node.def @@ -0,0 +1,19 @@ +type: bool +help: Allow root login over ssh +default: false +help: Enable/disable root login +update: if [ \"$VAR(@)\" == \"true\" ]; then + sudo ed - /etc/ssh/sshd_config <<-"EOF" + /^PermitRootLogin/s/no/yes/ + wq + EOF + else + sudo ed - /etc/ssh/sshd_config <<-"EOF" + /^PermitRootLogin/s/yes/no/ + wq + EOF + fi +delete: sudo ed - /etc/ssh/sshd_config <<-"EOF" + /^PermitRootLogin/s/yes/no/ + wq + EOF |