I'm using this script to avoid telnetd running when it isn't needed at all, ie: a) no failsafe mode, b) root passwd is set.
#!/bin/sh
FSAFE=0
PWDSET=0
# test failsafe mode
test -n "$FAILSAFE" && FSAFE=1
# check if root passwd is set
if [ -f /etc/passwd ]; then
RPWD=$(cat /etc/passwd | grep root | cut -d":" -f2)
if [ ".$RPWD" != ".*" ]; then
PWDSET=1
fi
fi
if [ ".$FSAFE" = ".1" ] || [ ".$PWDSET" = ".0" ]; then
telnetd -l /bin/login
fi
Any side-effect?
Regards
Wallace