Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 1996 14:10:13 GMT
From:      Charlie Luck <>
Message-ID:  <>

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:


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,

Want to link to this message? Use this URL: <>