summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-05 20:18:58 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-05 20:18:58 -0800
commit1041db879c6bdfa86f6a8b19e1542475db6dffc9 (patch)
treee0359cfad012baedd6671aad803c71b36fa6dea2 /templates
parentbfaa4cb6f05b86f7d4d18e0ccab6e49c02d3d52d (diff)
downloadvyatta-cfg-system-1041db879c6bdfa86f6a8b19e1542475db6dffc9.tar.gz
vyatta-cfg-system-1041db879c6bdfa86f6a8b19e1542475db6dffc9.zip
add "allow-root" option for telnet (default "false").
Diffstat (limited to 'templates')
-rw-r--r--templates/service/telnet/allow-root/node.def10
-rw-r--r--templates/service/telnet/port/node.def2
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"