I have a remote test machine that I would like certain users to be able to login as a root user.
However for security reasons I don’t want them being able to rlogin or any similar as root back to my live box. How do I stop this.
Edit the /etc/inetd.conf file (disable the entry for rlogin) on your live system. If you want to disable more nework services make a backup copy of the original file before editing it.
But be aware that you have to give the possibility to login with other tools like ssh otherwise you could end up with a system you can't login to any more.
Then save the new /etc/inetd.conf file and force the inetd to re-read the config file:
# ps -ef | grep inetd
Then you get the pid of inetd (let's say it is 185)
# kill -HUP 185
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.