rsh permission denied


 
Thread Tools Search this Thread
Operating Systems Linux rsh permission denied
# 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:
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.

Image

Last edited by Scott; 11-24-2012 at 12:05 PM.. 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 or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permission denied

when i run echo "User” > /dev/tty5 why do i get permission denied? :confused: (2 Replies)
Discussion started by: chinababy
2 Replies

2. Linux

Permission denied

I am using korn shell When I type in Telnet on cmd line, I get message "cannot execute" How can I get permission to execute command ? In which dir is telnet located ? I looked in /usr/bin dir. but its not there Thanks (1 Reply)
Discussion started by: paramshamnani
1 Replies

3. AIX

RSH intermittent error rshd: 0826-813 Permission is denied.

I am getting an error from one node in a set with RSH setup between them, node one will connect to node two every other time (consistently), however node to connects to node one every time without problem. Here is what I am seeing, makes no sense to me. Can anyone help? sbhcprdb01<root>: rsh... (6 Replies)
Discussion started by: JodyTek
6 Replies

4. Red Hat

Permission denied

Hi guys im new to this db i have a small prob while installing websphereportal6.1i think i was installed succesfully but the error im getting is while starting server. check this out # ./serverStatus.sh -all Error loading: /usr/wps61/AppServer/java/jre/bin/classic/libjvm.so: cannot... (1 Reply)
Discussion started by: varma917989
1 Replies

5. Red Hat

rsh denied on some boxes but not others

Hi. As root, I'm running rsh as root from a Solaris 9 machine to some RHEL 4 servers (supposedly all configured identically) but two of about 10 respond with permission denied. There is no firewall device between the Solaris 9 client and the RHEL servers. I'm doing something like this from the... (4 Replies)
Discussion started by: th1amigo
4 Replies

6. Shell Programming and Scripting

Permission denied while executing rsh

Hi All, I have two servers, say server1 and server2. I have put the entries of both servers in /.rhosts file of both servers. So, when I tried to run following from server1- rsh server2 "ls" Permission denied was printed on console. Can anyone help me out? Regards, akash mahakode (4 Replies)
Discussion started by: akash_mahakode
4 Replies

7. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies

8. UNIX for Advanced & Expert Users

Permission denied

Hi, I can not execute a .env file $ . /Data/oracle/d03/mydbora/8.0.6/MYDB.env -bash: /Data/oracle/d03/mydbora/8.0.6/MYDB.env: Permission denied Even if : -rwxrwxrwx 1 oracle dba 2903 Mar 5 2007 /Data/oracle/d03/mydbora/8.0.6/MYDB.env Please help. Many thanks. (1 Reply)
Discussion started by: big123456
1 Replies

9. Shell Programming and Scripting

rsh permission denied

Hi Gurus, Trying to search in the forum but cant seem to find anything related. I'm trying to run this script DWH_Housekeep.sh from the another server This is my command: rsh -l hulft 140.32.12.161 /usr/TRS/script/DWH_Housekeep.sh permission denied I get permission denied. ... (7 Replies)
Discussion started by: lweegp
7 Replies

10. UNIX for Dummies Questions & Answers

rsh and permission denied

Dear All I am using rsh command to work with a remote tape drive. I am getting the message 'permission denied'. What should I do to get rid of this message. Best Regards Reza (1 Reply)
Discussion started by: Reza Nazarian
1 Replies
Login or Register to Ask a Question