LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Configuring rsh on ubuntu (https://www.linuxquestions.org/questions/linux-software-2/configuring-rsh-on-ubuntu-825579/)

ubuntuv 08-11-2010 11:09 AM

Configuring rsh on ubuntu
 
Hi,

I am using ubuntu 10.04. I installed inetutils-inetd,rsh-server & rsh-client. Created user "user1".

disabled firewall using the command
$ sudo ufw disable

$ su user1
$ cd ~
$ vi .rhosts
Entered ip address of another host and saved
$ chmod 600 .rhosts

Restarted the service by
$ sudo /etc/init.d/inetutils-inted restart

From other machine I typed 'rsh <ip> ls', it says

-----------
permission denied
cant' establish connection
-----------

When I issued 'tail -f /var/log/messages', I got no messages.

Please tell me, do I have to disable any other services to do this work.

Thanks
uv

sem007 08-12-2010 02:52 AM

can you please provide below command output?

Code:

netstat -antulp | grep rsh

cat /etc/inetd.conf


ubuntuv 08-12-2010 07:54 AM

> netstat -antulp | grep rsh
Resulted nothing

> cat /etc/inetd.conf

Quote:

# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#time stream tcp nowait root internal

#:STANDARD: These are standard services.

#:BSD: Shell, login, exec and talk are BSD protocols.
shell stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rshd
login stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rlogind
exec stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.rexecd

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services

chrism01 08-13-2010 08:19 AM

Can I ask why you're using the r* protocols; they are all plaintext, so zero security.
http://www.informit.com/articles/art...p=169465&rll=1
Why not ssh protocols?

ubuntuv 08-13-2010 09:40 AM

sir,

I am using in private network. All my old applications use rsh. Thats the reason.

Thanks
uv.


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