<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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
          ppid=`ps -p $i -o ppid=`
          if ps -p $ppid -o cmd= | grep -q telnetd
          then
            echo "Please configure telnet settings via ssh or console."
            exit 1
          fi
        done
        if [ "$VAR(@)" == "true" ]
        then 
          sudo mv -f /etc/securetty /etc/securetty.allow-root &gt;&amp;/dev/null
        else
          sudo mv -f /etc/securetty.allow-root /etc/securetty &gt;&amp;/dev/null
        fi 
        /bin/true

delete: pids=`who -u | awk -F " " '{print $7}'`
        for i in $pids
        do
          ppid=`ps -p $i -o ppid=`
          if ps -p $ppid -o cmd= | grep -q telnetd
          then
            echo "Please configure telnet settings via ssh or console."
            exit 1
          fi
        done
        sudo mv -f /etc/securetty.allow-root /etc/securetty &gt;&amp;/dev/null
        /bin/true
</pre></body></html>