diff options
author | rbalocca <rbalocca@fugazi.vyatta.com> | 2007-12-10 14:37:59 -0800 |
---|---|---|
committer | rbalocca <rbalocca@fugazi.vyatta.com> | 2007-12-10 14:37:59 -0800 |
commit | 94fbe9b07d0f556fcd2d9bcb3b7e00a1fb2df16b (patch) | |
tree | 20092705b086f88366ff72b1ea615bc77eeaf684 /templates | |
parent | 8b00422b60deb69fa9abbfe584e69b5853c5e8af (diff) | |
parent | 5ba8cf8393030d75c03a15551a57831f3f0908a4 (diff) | |
download | vyatta-cfg-quagga-94fbe9b07d0f556fcd2d9bcb3b7e00a1fb2df16b.tar.gz vyatta-cfg-quagga-94fbe9b07d0f556fcd2d9bcb3b7e00a1fb2df16b.zip |
Merge branch 'master' into glendale
Diffstat (limited to 'templates')
-rw-r--r-- | templates/service/telnet/allow-root/node.def | 10 | ||||
-rw-r--r-- | templates/service/telnet/port/node.def | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def new file mode 100644 index 00000000..654023af --- /dev/null +++ b/templates/service/telnet/allow-root/node.def @@ -0,0 +1,10 @@ +type: bool +default: false +help: "Enable/disable root login" +update: "if [ \"$(@)\" == \"true\" ]; then \ + sudo mv -f /etc/securetty /etc/securetty.allow-root >&/dev/null; \ + else + sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null; \ + fi ; /bin/true" +delete: "sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null ; \ + /bin/true" diff --git a/templates/service/telnet/port/node.def b/templates/service/telnet/port/node.def index 0232af83..d9bbce6c 100644 --- a/templates/service/telnet/port/node.def +++ b/templates/service/telnet/port/node.def @@ -1,3 +1,3 @@ -type: u32 +type: u32 default: 23 help: "Port for telnet service" |