Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stopping rlogin

Status
Not open for further replies.

sirrom

Technical User
Jul 11, 2001
80
GB
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.
[2thumbsup]
 
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

mrjazz [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top