Solved

remsh permission denied

Posted on 1997-03-18
1
1,297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NTP Server in VMware 5 466
Invalid password trying to cannect to Unix server 2 106
UNIX SCP 5 96
Cygwin VIM in WIndows 2007: Unable to copy text to Windows 10 86
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

739 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