If you put some code like the following in /etc/profile
Code:
case ${LOGNAME} in
jeb|george|condy)
if ps xww ${PPID}|grep -q telnetd
then
echo "Sorry ${LOGNAME}, you can't use telnet - please use ssh instead..."
sleep 5
exit
fi
;;
esac
But be advised, Your local changes to /etc/profile are bound to get written over when you next upgrade the OS...
Also you want to make absolutely sure the code is functioning properly, or risk not getting back into the server yourself without too much of a hassle - try it out on a test box first...
unless I'm wrong somewhere, in the caracteristics of an user, you can select if he may login remotely (this does not affect only telnet but rsh and rlogin too),
(smitty users => change / sow caracteristics of a user)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.