summaryrefslogtreecommitdiff
path: root/templates/service/telnet/allow-root/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/telnet/allow-root/node.def')
-rw-r--r--templates/service/telnet/allow-root/node.def10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def
index e01763b6..347a9476 100644
--- a/templates/service/telnet/allow-root/node.def
+++ b/templates/service/telnet/allow-root/node.def
@@ -1,7 +1,9 @@
-type: bool
+type: txt
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
@@ -18,6 +20,7 @@ update: pids=`who -u | awk -F " " '{print $7}'`
else
sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null
fi
+ /bin/true
delete: pids=`who -u | awk -F " " '{print $7}'`
for i in $pids
@@ -30,7 +33,4 @@ delete: pids=`who -u | awk -F " " '{print $7}'`
fi
done
sudo mv -f /etc/securetty.allow-root /etc/securetty >&/dev/null
-
-comp_help: possible completions:
- true Allow root to login via telnet
- false Don't allow root to login via telnet(default)
+ /bin/true