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 client:
I've been comparing the setup on the RHEL servers but can't figure out where the problem might exist on the 2 oddball servers. I checked /.rhosts, /etc/hosts, nsswitch.conf, /etc/pam.d/rsh, /etc/xinet.d/rsh and they're the same.
In the messages file, I see
However, the /etc/pam.d/rsh file has the following entries (same as servers allowing rsh from the Solaris 9 client):
I'm not a RHEL expert so would appreciate any suggestions.
Here's the deal. There are three RHEL 4 servers I cannot rsh into as root. One already has rsh in /etc/securetty. The other two didn't so I added rsh to it. Made no difference. Do I have to restart some service?
On the other hand, there's a 4th server I can rsh into as root but it does NOT have rsh in /etc/securetty.
All 4 servers have the same /.rhosts file with the entry in /etc/hosts and the same nsswitch.conf. They also have the same /etc/pam.d/rsh file.
Name resolution?
Try this on source and all destination computers.
To make this easy. When "nslookup" is run on both source and destination computers the command should respond with a name ... and give exactly the same name as is quoted in /.rhosts.
Each IP address would normally appear only once in /etc/hosts and have only one name. (I know that there are exceptions).
A .rhosts should be permissions 600 and owned by "root" or it will be ignored.
Afterthought. Check that root's home directory is actually "/" on every server. Often is is "/root" .
Thanks methyl! Your afterthought was right on the money.
All my servers have /root as the home directory for root and the ones that weren't allowing rsh access didn't have .rhosts under /root - they were under /. I copied .rhosts to /root and they now all allow root rsh access.
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)
Hi,
we plan to purchase new sun solaris server M4000 for oracle erp as we have old servers we want to upgrade it with new servers and would like to know query related to it.
1)what is Operating system version will comes with new servers and bit size either 32 bit or 64 bit??
2)bit size... (2 Replies)
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)
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)
Hi All,
Please help me how to install and configure rsh in Linux boxes and let me know where i get this software.
Thanks in advance...
Regards,
Sridhar. (3 Replies)
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)
Hello I'm serving on a ship that has frequent power issues. Currently if we loose power we need to rush around to multiple UNIX machines and login to Sysadmin and power down each machine before we loose our ups. If sysadmin is asleep or not in the space we have some real problems. I would like to... (2 Replies)
Hi,
I'm looking to get hold of a sun machine capable of running Solaris 9 to help me learn unix. I've been advised to look on e-bay, but am not sure of what to look for.
The below seems quite good.....
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&category=1486&item=5707567514&rd=1
... (3 Replies)
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)
Hi !
Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix.
I think it would be done using curses.h ..but that's all i know.
TIA,
Devyani. (3 Replies)