rcp problems

I am having problems with rcp on one particular machine that I have at work.

I can rcp from any host to any other host except this one box.

I get the following error message.

           rcp daily_maint  remote1:/root/daily_maint
           remshd: Password for this account expired.

I get this error when rcp'ing to this box or from this box.

Any help would be appreciated.

Have a look at the following notes:

 rcp  is meant to copy between different hosts; attempting to
 rcp  a file onto itself, as with:

 rcp tmp/file myhost:/tmp/file

 results in a severely corrupted file.

 rcp  may not correctly fail when the target of a copy  is  a
 file instead of a directory.

 rcp  can become confused by output generated by commands in
 a $HOME/.profile    on the remote host.

 rcp  requires that the source host have permission  to  exe-
 cute  commands  on  the  remote  host when doing third-party
 copies.

 rcp  does not properly handle symbolic links. Use tar   \(see
 tar\(1\)\)  or  cpio   \(see  cpio\(1\)\)  piped  to rsh  to obtain
 remote copies of directories containing  symbolic  links  or
 named pipes.

 If you forget  to  quote  metacharacters  intended  for  the
 remote host, you will get an incomprehensible error message.

 rcp  will fail if you copy ACLs to a file system  that  does
 not support ACLs.

Also do a :
<pre>
ps -ef|grep remshd // to see if anything like this is running
more /etc/passwd // to see if there is any account like remshd
cd /root/daily_maint //check that directory or file.

</pre>

I think that it is a problem with this particular box. When I do a type rcp, the response comes back with /bin/rcp. All of my other boxes have it in /usr/bin/rcp.

Also, I can rcp the file in question to any other box except this box. I have check the file permissions and directory parms as well. Everything looks to be okay.

I do have an .rhosts file setup. I have tried to use the full path of the exe /usr/bin/rcp from both directions, a remote box and from the box in question as well. I still get the same reply.

               remshd: Password for this account expired.

I will continue to check the remshd angle.

I think that I got fixed.

It was a problem with access between the two boxes. I tried to rlogin back and forth between the boxes. I could go from the box with rcp problems back to my other box with no problems. But I could not rlogin from the latter box into the former box.

When I tried to rlogin it asked me to change the password. So, I did. Now it works!!

Weird problem.

:slight_smile:

Thanks for updating on the solution. Sometimes the little, hidden things are more important than the big things. Well... now that I think about it.... the little things that we can't explain make life so interested.

My sincere thanks to everyone who takes the time to post the solutions to their problems and not just the problems !