Permission denied while executing rsh


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Permission denied while executing rsh
# 1  
Old 11-16-2009
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-
Code:
rsh server2 "ls"

Permission denied was printed on console.

Can anyone help me out?

Regards,
akash mahakode
# 2  
Old 11-16-2009
simple first questions..

1/ can you rsh directly / interactively?

2/ in your .rhosts what format are you using ? i.e. on server2 is the .rhosts entry:

server1 <username>

where server1 is the official name, not a nickname

3/ is there anything in /etc/hosts.deny on server2 ?
# 3  
Old 11-16-2009
Hi Tytalus,

Ans 1. I use rsh directly e.g. rsh server2 "ls".

Ans 2. Previously I had following entries in /.rhosts of both servers-
Code:
server1
server2

Now, I modified it to -
Code:
server1 root
server2 root

But the problem persists.

Ans 3. I didn't find file named as /etc/hosts.deny file on both servers.

Regards,
akash mahakode
# 4  
Old 11-16-2009
ah - for 1 I actualyl meant - can you simply rsh from server 1 to server 2 i.e.

rsh server2

with no command specified...

possibly a name resolution issue - you might want to try replacing the server1 name with the IP address, and potentially (for testing) replace username with + to allow ALL users.

if you're still having probs it might be tcp wrapper related, or maybe firewall territory
# 5  
Old 11-17-2009
Hi Tytalus,

When I tried on server1
Code:
rsh server2

then it asked for password, after providing the password for server2, server2 prompt got opened.

I also tried provding the IP of server2 but it didnt work.
What should I do? Smilie

Regards,
akash
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing bash file with sudo for the second time, leads to permission denied, for some commands

I have a script that checks if the script has been ran with sudo. If the script is not ran as sudo, the current script is being executed with exec sudo bash. You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies

2. Linux

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. # rsh localhost date Permission denied. # but same works in other system # rsh localhost date Fri Nov 23 05:31:12 PST... (5 Replies)
Discussion started by: muzaffar.k
5 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. Shell Programming and Scripting

Executing expect script giving message as bad interpreter: Permission denied

Hi Gurus, I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as #!/usr/bin/expect-5.43 -f spawn telnet localhost 2233 expect "password:" send "secret\r" send "i data.cnbc.com\r" send "exit\r" expect eof When I am trying to execute... (2 Replies)
Discussion started by: niks_yv
2 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. 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

7. 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

8. UNIX for Dummies Questions & Answers

Why ' Permission denied' when executing a command?

Hi All, When I execute a command on Unix and it says 'Permission denied'. What could be the reason and how can it be resolved? Many thanks, David (2 Replies)
Discussion started by: david_wang
2 Replies

9. UNIX for Dummies Questions & Answers

./ Permission Denied.

Could someone tell me why I am getting a permission denied message when I attempt to run this on an out file? Thanks! (8 Replies)
Discussion started by: trouscaillon
8 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