Networking Forums

Networking Forums > Computer Networking > Linux Networking > rcp problem

Reply
 
 
Andy
Guest
Posts: n/a

 
      10-09-2004, 03:23 PM
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
 
 
 
 
Dam
Guest
Posts: n/a

 
      10-09-2004, 06:54 PM
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
 
Bill Marcum
Guest
Posts: n/a

 
      10-10-2004, 03:33 PM
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
 
Bill Unruh
Guest
Posts: n/a

 
      10-10-2004, 09:19 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem: no problem with Linux, when I boot windows 2K network is down... Santa Linux Networking 11 11-29-2004 06:46 AM



1 2 3 4 5 6 7 8 9 10 11