Solved

remsh permission denied

Posted on 1997-03-18
1
1,287 Views
Last Modified: 2013-12-16
I have recently installed SCO Open Server on a couple of machines which communicate via  ethernet to a couple of NCR 3500 machines.
Occasionally I need to edit a file on the SCO machines remotely from the 3500's from a script run as root.
According to SCO documentation I need an entry in /etc/passwd plus an entry in .rhosts in the root directory, in the format hostname root, for remshd to validate the logon. I have done both of these but still get the message:-
permission denied
remsh:can't establish remote.

I have also put an entry in /etc/hosts.equiv
the hostname is present in /etc/hosts.

I'm sure that I'm overlooking something simple like permissions somewhere.

Thanks in advance
0
Comment
Question by:philt022797
1 Comment
 
LVL 2

Accepted Solution

by:
pxh earned 50 total points
ID: 1811945
Make shure that .rhosts is alright. First it has to be on the root directory, i.e. /.rhosts  second the host specified in .rhosts has to be either the full internet address (with the domain appended) or only the hostname. This is easy to find out. If you are on the remote system do a rlogin (or telnet) to the target machine. Then enter "who" and you should see your login with the originating host in brackets at the end of the line. You can recognize whether your local host is "seen" with or without the domainname appended. Be careful the who output line might be truncated.

Another detail: how are you logged in on the local machine?
E.g. you are sitting in front of host_l as user philt and you want to remote edit on host_r as root. What you really need is /.rhosts on host_r with the entry "host_l philt". host_l has to
be a hostname or Internet address according to the above rules.

You can check this by issuing "rlogin host_r -l root" from host_l. If you are asked for a password something is still wrong with the .rhosts file.

Hope this helps,

Peter

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now