I have configured rsh-server and running rsh command on my fedora 14 machine while executing it shows permission denied, below is the output of the same.
[root@mindnic-06 ~]# rsh localhost date
Permission denied.
[root@mindnic-06 ~]#
but same works in other system
[root@mindlanf-1 ~]# rsh localhost date
Fri Nov 23 05:31:12 PST 2012
[root@mindlanf-1 ~]#
i have configured all the required things then to it shows permission denied, please help me with this.
I have added the following line as you said but still same
[root@mindnic-06 ~]# cat .rhosts
localhost root
below is the rsh output
[root@mindnic-06 ~]# rsh localhost date
Permission denied.
[root@mindnic-06 ~]#
is there any file where i have to give any permission or add any comments. below are the file where i have done changes after configuring rsh
[root@mindnic-06 ~]# cat /etc/xinetd.d/rsh
# default: on
# description: The rshd server is the 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
}
[root@mindnic-06 ~]#
[root@mindnic-06 ~]# cat /etc/securetty
console
rsh
rlogin
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
rsync
rexec
[root@mindnic-06 ~]# cat /etc/hosts.equiv
+ +
[root@mindnic-06 ~]# cat /etc/pam.d/rsh
#%PAM-1.0
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required pam_nologin.so
auth required pam_securetty.so
auth required pam_env.so
auth required pam_rhosts.so
account include password-auth
session optional pam_keyinit.so force revoke
session required pam_loginuid.so
session include password-auth
[root@mindnic-06 ~]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@mindnic-06 ~]# rsh localhost date
Permission denied.
[root@mindnic-06 ~]#
Please help me solve this it would be a great help if i am configuring this
[root@mindnic-06 /]# rsh localhost date
Permission denied.
[root@mindnic-06 /]#
---------- Post updated 11-28-12 at 12:23 AM ---------- Previous update was 11-27-12 at 03:51 AM ----------
i was able to resolve this issue only one thing i was missing in this process it was to disable selinux and firewall and reboot your system once
[root@mindnic-06 ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@mindnic-06 ~]#
[root@mindnic-06 ~]# rsh localhost date
Wed Nov 28 10:48:39 IST 2012
[root@mindnic-06 ~]#