LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-08-2006, 10:58 AM   #1
liyuefu
LQ Newbie
 
Registered: Jun 2005
Posts: 16

Rep: Reputation: 0
how to configure rlogin/rsh in SUSE9


hi everyone!

I got a question, I can't use rlogin /rsh even I
configured the /etc/hosts.equiv, /etc/hosts.allow,
/etc/xinetd.d/rsh, /etc/xinetd.d/rlogin,
and I added
in.rshd : ALL :AllOW
and I set the /etc/sysconfig/network/config
FIREWALL="no"

but I still can' use the rsh, when I use rsh.
password is required.

any advice is appreciated.

Thanks a lot.

Sincerely yours
Li Yuefu
 
Old 06-09-2006, 08:04 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi,

I my point of view, I would tell you to not use such a program.
Use a program like <ssh> is better more secure and more simple to set up.

Cheers.
 
Old 12-22-2007, 06:55 AM   #3
linux4begin
LQ Newbie
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu,RedHat,Suse Linux,DEBIAN.
Posts: 17
Blog Entries: 1

Rep: Reputation: 0
Smile very simple ro start rsh

[1] First of all check what are all packages installed on machine, for rsh.

rpm -qa | grep -i rsh

it will list

rsh-server-0.17-25.3
rsh-0.17-25.3


These both are required to start rsh on machine. If only rsh is there, then you need to installed rsh-server also.

[2] After that make sure the /etc/xinetd.d/rsh /etc/xinetd.d/rlogin /etc/xinetd.d/rexec files are there.
If they are not there, then create them, below are the sample files.
======================/etc/xinetd.d/rsh---file==============
# default: off
# description:
# The rshd server is a server for the rcmd(3) routine and,
# consequently, for the rsh(1) program. The server provides
# remote execution facilities with authentication based on
# privileged port numbers from trusted hosts.
service shell
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
disable = no
}
=============================================
=================/etc/xinetd.d/rlogin--file==============
# default: off
# description:
# Rlogind is a server for the rlogin program. The server provides remote
# execution with authentication based on privileged port numbers from trusted
# host
service login
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rlogind
disable = no
}
======================================================
=================/etc/xineted.d/rexec--file==========
# default: off
# description:
# Rexecd is the server for the rexec program. The server provides remote
# execution facilities with authentication based on user names and
# passwords.
service exec
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
disable = no
}
======================================================

Now save all these files, and then do following steps.

[3] Edit /etc/securetty file.

e.g.,

cat /etc/securetty
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
ttyS0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
rsh
rlogin
rexec

Add the /etc/securetty file like above. Add these three services in bottom of file.

[4] now edit /root/.rhosts file. If this file is not there, then you can create it with 600 file permission.

touch /root/.rhosts
chmod 600 /root/.rhosts

now in this file add all hosts from where you want to do rsh.
Suppose you want to do rsh from PC-1 to PC-2 and on PC3.
then add file like below,

pc-1 root
pc-2 root
pc-3 root

here pc-1 will be get replace by your hostname of machine.so double cross check the hostname before editing this file.

Now just restart the xinetd.d services.
/etc/init.d/xinetd.d start
or restart

Hope this will sovle your prob.

Thanks.
With Regards,
Ashish Barot.
www.linux4beginners.info
 
  


Reply



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
How to configure rsh on suse9.3 wyjinni Linux - Networking 3 05-14-2006 04:13 PM
How to configure rsh on suse9.3 wyjinni SUSE / openSUSE 1 05-13-2006 11:10 PM
Can't get rlogin, rsh to work in FC3 dangs Linux - Security 1 01-11-2005 11:45 AM
rsh and rlogin on Linux to HP-UX sammathew Linux - Networking 1 09-09-2003 04:17 PM
rsh and rlogin service configuration romagnol Linux - General 1 06-28-2002 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:08 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
Open Source Consulting | Domain Registration