Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

rcp problem

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2004, 04:23 PM
Default rcp problem



I have two hosts -A & B
host A can rcp file to host B by root a/c
rcp abc.txt root@hostB:/tmp --> it is Ok

but can't rcp file to host B by other user

rcp abc.txt user@hostB:/tmp ,
Permission denied.

I have updated the hostB ~user/.rhosts

#vi ~user/.rhosts
+ +
hostB user

but still not work , could suggest what is the problem ?

but very strange , the user can rlogin from hostA to hostB , but can't
rcp , could suggest what is wrong ? thx


Andy
Reply With Quote
  #2  
Old 10-09-2004, 07:54 PM
Dam
Guest
 
Posts: n/a
Default Re: rcp problem

Have you checked that user in hostB can write to /tmp directory.
(You should check this directly on hostB without connecting from hostA.)

Bye
Damiano


Andy wrote:

> I have two hosts -A & B
> host A can rcp file to host B by root a/c
> rcp abc.txt root@hostB:/tmp --> it is Ok
>
> but can't rcp file to host B by other user
>
> rcp abc.txt user@hostB:/tmp ,
> Permission denied.
>
> I have updated the hostB ~user/.rhosts
>
> #vi ~user/.rhosts
> + +
> hostB user
>
> but still not work , could suggest what is the problem ?
>
> but very strange , the user can rlogin from hostA to hostB , but can't
> rcp , could suggest what is wrong ? thx


Reply With Quote
  #3  
Old 10-10-2004, 04:33 PM
Bill Marcum
Guest
 
Posts: n/a
Default Re: rcp problem

On Sat, 09 Oct 2004 18:54:18 GMT, Dam
<(E-Mail Removed)> wrote:
> Have you checked that user in hostB can write to /tmp directory.
> (You should check this directly on hostB without connecting from hostA.)
>
> Bye
> Damiano
>
>
> Andy wrote:
>
>> I have two hosts -A & B
>> host A can rcp file to host B by root a/c
>> rcp abc.txt root@hostB:/tmp --> it is Ok
>>
>> but can't rcp file to host B by other user
>>
>> rcp abc.txt user@hostB:/tmp ,
>> Permission denied.
>>
>> I have updated the hostB ~user/.rhosts
>>
>> #vi ~user/.rhosts
>> + +
>> hostB user
>>

I think that should be "hostA user", and the .rhosts file should have
600 permission.


--
System Events
=-=-=-=-=-=-=
Sep 16 03:31:11 don kernel: lp0 on fire

Reply With Quote
  #4  
Old 10-10-2004, 10:19 PM
Bill Unruh
Guest
 
Posts: n/a
Default Re: rcp problem

Bill Marcum <(E-Mail Removed)> writes:

]On Sat, 09 Oct 2004 18:54:18 GMT, Dam
] <(E-Mail Removed)> wrote:
]> Have you checked that user in hostB can write to /tmp directory.
]> (You should check this directly on hostB without connecting from hostA.)
]>
]> Bye
]> Damiano
]>
]>
]> Andy wrote:
]>
]>> I have two hosts -A & B
]>> host A can rcp file to host B by root a/c
]>> rcp abc.txt root@hostB:/tmp --> it is Ok
]>>
]>> but can't rcp file to host B by other user
]>>
]>> rcp abc.txt user@hostB:/tmp ,
]>> Permission denied.

That usually means that either abc.txt or the /tmp directory on B do not
have the right permissions.


]>>
]>> I have updated the hostB ~user/.rhosts
]>>
]>> #vi ~user/.rhosts
]>> + +
]>> hostB user
]>>

This is completely totallly and utterlyidiotic. Why in the world would you
want to give everyone in teh world the permission to log onto your machine
without a password. Even if your machine is not now on the net, it probably
will be sometime.

Also, use scp, not rcp. rcp is outdated and highly insecure.

]I think that should be "hostA user", and the .rhosts file should have
]600 permission.


]--
]System Events
]=-=-=-=-=-=-=
]Sep 16 03:31:11 don kernel: lp0 on fire

Reply With Quote
Reply

Tags
problem, rcp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.