PDA

View Full Version : Cannot use rcp or rlogin on SLES 10 SP 3



ericsi
23-Oct-2011, 14:56
Hi,

I have an application running on SLES 10 SP3 which uses rcp to copy
files from another host, which is also SLES 10 SP3. Its logs show that
on executing -rcp- the error "*Operation not permitted*" is thrown.
To resolve this i was told to make an entry in the -rhosts- file in the
user directory, but the problem is that -rhosts- file does not exist on
both the systems.
I checked the *xinetd.d* folder, where no such files as rlogin or rsh
exist. I also checked pam.d directory; there also these files don't
exist.
I also tried editing the *hosts.equiv* file but I am still getting
CONNECTION REFUSED when i try to execute "*rlogin hostname*".

the hosts file in /etc of both systems has the entry for the other.
What could be the problem ?

Thanks.


--
ericsi
------------------------------------------------------------------------
ericsi's Profile: http://forums.novell.com/member.php?userid=110755
View this thread: http://forums.novell.com/showthread.php?t=447191

malcolmlewis
23-Oct-2011, 15:00
On Sun, 23 Oct 2011 13:56:01 GMT
ericsi <ericsi@no-mx.forums.novell.com> wrote:

>
> Hi,
>
> I have an application running on SLES 10 SP3 which uses rcp to copy
> files from another host, which is also SLES 10 SP3. Its logs show that
> on executing -rcp- the error "*Operation not permitted*" is thrown.
> To resolve this i was told to make an entry in the -rhosts- file in
> the user directory, but the problem is that -rhosts- file does not
> exist on both the systems.
> I checked the *xinetd.d* folder, where no such files as rlogin or rsh
> exist. I also checked pam.d directory; there also these files don't
> exist.
> I also tried editing the *hosts.equiv* file but I am still getting
> CONNECTION REFUSED when i try to execute "*rlogin hostname*".
>
> the hosts file in /etc of both systems has the entry for the other.
> What could be the problem ?
>
> Thanks.
>
>
Hi
Are the rsh-server and xinetd packages installed? Did you create a
~/.rhosts?
http://support.novell.com/techcenter/sdb/en/2004/11/dcon_sles9_rsh.html

--
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 14:16, 4 users, load average: 0.83, 0.42, 0.31
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

ericsi
23-Oct-2011, 16:46
Thanks for the prompt reply !!
Got it to work finally. Had to create the rhosts file like you said and
then changed its permission to 600 and restarted xinetd.
Worked !!

Thanks once again.


--
ericsi
------------------------------------------------------------------------
ericsi's Profile: http://forums.novell.com/member.php?userid=110755
View this thread: http://forums.novell.com/showthread.php?t=447191