rsh permission denied


Thread Tools Search this Thread
# 1  
Old 11-23-2012
rsh permission denied


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.

Moderator's Comments:
Mod Comment It takes you longer to add, and me to remove, the colour and bold than it would for you to press the Code Tags button.


Last edited by Scott; 11-24-2012 at 12:05 PM.. Reason: Code tags
# 2  
Old 11-27-2012

i have stuck with this issue for long please help me with this..

please let me know if you need any more details on this.
# 3  
Old 11-27-2012
Just try to have a look at the file ${HOME}/.rhosts

It should contain
localhost root

# 4  
Old 11-27-2012
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
[root@mindnic-06 ~]# cat /etc/hosts.equiv
+ +
[root@mindnic-06 ~]# cat /etc/pam.d/rsh
# For root login to succeed here with pam_securetty, "rsh" must be
# listed in /etc/securetty.
auth required
auth required
auth required
auth required
account include password-auth
session optional force revoke
session required
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
# 5  
Old 11-27-2012
Did you check that the .rhosts file is in the homedir of the account used ?
You are using root, so i guess its homedir is /

Some servers check that ${HOME}/.rhosts file have 0600 permissions.
Can you check that too please.
# 6  
Old 11-28-2012
the permission for .rhosts

[root@mindnic-06 ~]# ls -l .rhosts
-rw-r--r--. 1 root root 16 Nov 27 13:32 .rhosts
[root@mindnic-06 ~]#

is that the correct file i am editing or it should be diffrent

---------- Post updated at 03:51 AM ---------- Previous update was at 03:44 AM ----------

i have created file in / location also

[root@mindnic-06 /]# cat .rhosts
localhost root
[root@mindnic-06 /]#

[root@mindnic-06 /]# ls -l .rhosts
-rw-r--r--. 1 root root 15 Nov 27 14:11 .rhosts
[root@mindnic-06 /]#

[root@mindnic-06 /]# chmod 0600 .rhosts
[root@mindnic-06 /]# ls -l .rhosts
-rw-------. 1 root root 15 Nov 27 14:11 .rhosts

[root@mindnic-06 /]#

[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.
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.

[root@mindnic-06 ~]#

[root@mindnic-06 ~]# rsh localhost date
Wed Nov 28 10:48:39 IST 2012
[root@mindnic-06 ~]#

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Permission denied chinababy UNIX for Dummies Questions & Answers 2 03-22-2014 06:54 PM
Permission denied paramshamnani Linux 1 10-17-2013 07:12 PM
Permission denied lhareigh890 Shell Programming and Scripting 4 06-27-2011 11:08 AM
RSH intermittent error rshd: 0826-813 Permission is denied. JodyTek AIX 6 08-25-2010 08:38 PM
Permission denied varma917989 Red Hat 1 06-26-2010 08:17 PM
rsh denied on some boxes but not others th1amigo Red Hat 4 02-24-2010 11:20 AM
Permission denied while executing rsh akash_mahakode Shell Programming and Scripting 4 11-17-2009 06:50 AM
Permission denied su_in99 UNIX for Dummies Questions & Answers 1 02-20-2009 09:14 AM
Why do I keep getting .:Permission denied? bbersani UNIX for Dummies Questions & Answers 12 12-04-2008 03:49 AM
Permission denied big123456 UNIX for Advanced & Expert Users 1 10-10-2007 08:17 AM
rsh permission denied lweegp Shell Programming and Scripting 7 09-15-2006 05:36 AM
Permission Denied howeezy UNIX for Dummies Questions & Answers 0 09-14-2005 10:52 AM
./ Permission Denied. trouscaillon UNIX for Dummies Questions & Answers 8 01-26-2005 09:33 PM
rsh and permission denied Reza Nazarian UNIX for Dummies Questions & Answers 1 10-15-2001 01:21 PM
permission denied?? justchillin UNIX for Dummies Questions & Answers 6 08-10-2001 04:19 PM