diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-23 20:46:27 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-23 20:46:27 -0700 |
commit | fd872e43a5eb9b135912d6653a9fc4be97556a31 (patch) | |
tree | 16c6563e18871e2e5e4d2f51c3b66cedd46dd1c2 /templates/service/telnet/allow-root/node.def | |
parent | 0e1f76414aad46e320ca173c5b5d29faa7f5a87e (diff) | |
parent | 556580381ed0008c463aa0dd109f839f140f3443 (diff) | |
download | vyatta-cfg-quagga-fd872e43a5eb9b135912d6653a9fc4be97556a31.tar.gz vyatta-cfg-quagga-fd872e43a5eb9b135912d6653a9fc4be97556a31.zip |
Merge branch 'islavista' of suva.vyatta.com:/git/vyatta-cfg-system into islavista
Diffstat (limited to 'templates/service/telnet/allow-root/node.def')
-rw-r--r-- | templates/service/telnet/allow-root/node.def | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def index 347a9476..b853fc42 100644 --- a/templates/service/telnet/allow-root/node.def +++ b/templates/service/telnet/allow-root/node.def @@ -1,9 +1,7 @@ -type: txt +type: bool default: false help: Enable/disable root login -syntax:expression: $VAR(@) in "true", "false" ; "must be true or false" - update: pids=`who -u | awk -F " " '{print $7}'` for i in $pids do @@ -34,3 +32,9 @@ delete: pids=`who -u | awk -F " " '{print $7}'` done sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null /bin/true + +comp_help: possible completions: + true Enable root login over telnet + false Disable root login over telnet + +allowed: echo "true false" |