LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2010, 09:08 AM   #1
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
how to close or disable ruser and rlogin rhost in linux


dear gurus

can someone guide how to close or disable ruser and rlogin rhost in linux

so that nobody can connect using above commands

regards
 
Old 03-29-2010, 10:18 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,314

Rep: Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877
Quote:
Originally Posted by salimshahzad View Post
dear gurus

can someone guide how to close or disable ruser and rlogin rhost in linux
so that nobody can connect using above commands
regards
Easily found on Google, if you had tried to look.

Go into /etc/xinetd.d/ and edit the appropriate files. Set DISABLE to yes, and then HUP xinetd. Or do /etc/init.d/xinetd restart. Also, you need to provide details, like version/distro of Linux, etc., when you ask questions.
 
Old 03-30-2010, 01:47 AM   #3
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Original Poster
Rep: Reputation: 15
dear sir and my gurus appreciated

i am sorry i forget to put in my posting, it is centos 5.4 using it. i have try but due to confusion and doubts i have not do.

waiting your confirmation kind regards
 
Old 03-30-2010, 01:57 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,252

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
TB0ne's advice is good; try
Code:
cd /etc/xinetd.d
ls
and post the results.
Are your user's using those protocols already? On my default Centos install, they are not installed anyway, so no problem.
 
Old 03-30-2010, 02:05 AM   #5
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Original Poster
Rep: Reputation: 15
dear gurus thanks appreciated

in fact some bots, and some attacks coming most frequently so i was planning to close them as when they come they us rlogin,rhost,ruser etc when is saw in /var/log/messages attempt

kind regards
 
Old 03-30-2010, 06:11 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,314

Rep: Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877
Quote:
Originally Posted by salimshahzad View Post
dear sir and my gurus appreciated

i am sorry i forget to put in my posting, it is centos 5.4 using it. i have try but due to confusion and doubts i have not do.

waiting your confirmation kind regards
What confusion and doubts?? You edit the files that were noted, and follow the procedures. Open the files with an editor, change the DISABLE flag, save it, and restart xinetd. That's it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
euser and ruser jcky Linux - Newbie 2 01-04-2010 11:33 PM
disable suspend when I close the laptop lid lindylex Debian 5 04-14-2009 09:53 AM
Disable close and restore buttons in gnome-terminal srinivas1224 Linux - Desktop 0 11-05-2008 10:41 AM
running kde as another ruser Greebstreebling Debian 2 01-26-2008 12:56 PM
disable apm standby on lid close laurentwahl Linux - General 0 05-03-2005 04:54 PM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration