Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RCP Error, permission denied?

181 views
Skip to first unread message

adam_...@my-deja.com

unread,
Sep 13, 1999, 3:00:00 AM9/13/99
to
I'm curious what I am missing, I added both of the unix boxes to
/etc/hosts.equiv and it still says permission denied. Also when I
try to log in as root it tells me I can not log in from the outside..
Where is that configured??

I did try to do the rcp as a normal user as well but that still gave
me permission denied... I thought it might have something to do with
.rhosts also so I added that and still to no avail...(ver 4.3.1)
thanks,
Adam


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

eri...@my-deja.com

unread,
Sep 13, 1999, 3:00:00 AM9/13/99
to
In article <7rjdd5$vfo$1...@nnrp1.deja.com>,

Hi Adam. I am assuming that you have entries on BOTH servers for BOTH
servers in the hosts.equiv and .rhosts. I ran into a similar problem
with AIX 4.3.1 where no matter what I got permissons denied with rcp.
The long and the short of the problem was that for whatever reason the
name wouldn't resolve in the .rhosts file without an IP domain name.

In 4.3.1 you must specify a domain for each host in the /etc/hosts file
so that sendmail can successfully resolve email addresses. You need to
create a file (if it doesn't exist) called /etc/netsvc.conf. Assuming
you use /etc/hosts and not DNS, this file simply contains this line:

hosts = local

This specifies the order in which the system will attempt to resolve
names. If you use bind (DNS) or NIS, you will have to change the
order. For example

hosts = bind,local,NIS

Then you need to modify your /etc/hosts file to reflect a domain name
for each host. You can use an alias for each host so that your life
doesn't get too messed up :)

IP host alias
10.198.69.100 spitfire.domain spitfire

The final thing I had to do to get things working was to include the
domain name for each host in the .rhosts file:

spitfire.domain root

I used to be able to just say "spitfire root" (specifies the root user
only can use r-commands) with AIX 4.1.x, and it seems to be fixed in
4.3.2. Oddly enough, some 4.3.1 boxes worked without the domain name.
It is a strange problem, but this domain name trick seems to work.

Anyway, I hope this helps.

Eric

John Fletcher

unread,
Sep 13, 1999, 3:00:00 AM9/13/99
to
Take a look at the .rhosts file!...

<adam_...@my-deja.com> wrote in message
news:7rjdd5$vfo$1...@nnrp1.deja.com...

Michael Powney

unread,
Sep 14, 1999, 3:00:00 AM9/14/99
to
On Mon, 13 Sep 1999 19:37:12 GMT, eri...@my-deja.com
wrote:

> In article <7rjdd5$vfo$1...@nnrp1.deja.com>,
> adam_...@my-deja.com wrote:
> > I'm curious what I am missing, I added both of the unix
boxes to
> > /etc/hosts.equiv and it still says permission denied. Also
when I
> > try to log in as root it tells me I can not log in from the
outside..
> > Where is that configured??
> >
> > I did try to do the rcp as a normal user as well but that still
gave
> > me permission denied... I thought it might have something to
do with
> > .rhosts also so I added that and still to no avail...(ver 4.3.1)
> > thanks,
> > Adam
> >
> > Sent via Deja.com http://www.deja.com/
> > Share what you know. Learn what you don't.
> >
>


You should also check that the permissions for
/etc/hosts.equiv are set to 600 - this also applies to .rhosts

Your root login can be changed (in smit) to allow remote login -
but I prefer to have root accessed only by su from a private id -
then you have an log trail as to who is doing it...
(unless of course they mess with the sulog file)

mikep
AIX SysAdmin
TriZetto Group
Birmingham AL


0 new messages