👤
Home Man
Search
Today's Posts
Register

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

rsh permission denied

👤 Login to reply

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

hi

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.

Code:
[root@mindnic-06 ~]# rsh localhost date
Permission denied.
[root@mindnic-06 ~]#

but same works in other system

Code:
[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:
rsh permission denied 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 11:05 AM.. Reason: Code tags
# 2  
Old 11-27-2012
hi,

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
Code:
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
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
# 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.
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 ~]#
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Permission denied chinababy UNIX for Dummies Questions & Answers 2 03-22-2014 05:54 PM
Permission denied paramshamnani Linux 1 10-17-2013 06:12 PM
Permission denied lhareigh890 Shell Programming and Scripting 4 06-27-2011 10:08 AM
RSH intermittent error rshd: 0826-813 Permission is denied. JodyTek AIX 6 08-25-2010 07:38 PM
Permission denied varma917989 Red Hat 1 06-26-2010 07:17 PM
rsh denied on some boxes but not others th1amigo Red Hat 4 02-24-2010 10:20 AM
Permission denied while executing rsh akash_mahakode Shell Programming and Scripting 4 11-17-2009 05:50 AM
rsh permission denied lweegp Shell Programming and Scripting 7 09-15-2006 04:36 AM
./ Permission Denied. trouscaillon UNIX for Dummies Questions & Answers 8 01-26-2005 08:33 PM
rsh and permission denied Reza Nazarian UNIX for Dummies Questions & Answers 1 10-15-2001 12:21 PM


All times are GMT -4. The time now is 10:01 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password