Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 1996 14:10:13 GMT
From:      Charlie Luck <joshua@main.univers.chernovtsy.ua>
To:        questions@freebsd.org
Message-ID:  <199611271410.OAA07508@main.univers.chernovtsy.ua>

next in thread | raw e-mail | index | archive | help
Subject: Rshd doesn't want to allow executing commands

I have 2 freebsd_2.1.0 machines in a lan, connected via ethernet.
Lets call them 'aaa' and 'bbb'.

Assume that login names on 'aaa' and 'bbb' are:
user1 and user2 accordingly.

I would like to execute a command on 'bbb' as user2, being logged in on 'aaa'
as user1.

I created .rhosts on 'bbb', in the home directory of user2, containing:

user1@aaa

then, logged in to 'aaa' and run the following line:
rsh -l user2 bbb date

It had been thinking for a while, then it said: "Permission denied",
and on bbb, in /var/log/messages, it wrote user1@aaa as user2@bbb: permission
denied. cmd='date'

Thanks in advance,
josh




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611271410.OAA07508>