Microsoft KB Archive/323719

= The Win32 Version of RSH Reports &quot;Option t Is Not Valid&quot; to Rcp Clients =

Article ID: 323719

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows Services for UNIX 2.0 Standard Edition
 * Microsoft Windows Services for UNIX 2.1
 * Microsoft Windows Services for Unix 2.2
 * Microsoft Windows Services for Unix 2.3
 * Microsoft Windows Services for UNIX 3.0 Standard Edition

-



This article was previously published under Q323719



SYMPTOMS
When you run an rcp command from a UNIX/Linux client to the Windows Services for UNIX RSH service, you may receive the following error message:

Example:

$ rcp testfile winsvr2k:/

Option t is not valid.



CAUSE
This problem occurs because of an incompatibility between the UNIX rcp command and the Windows rcp.exe command. If the destination file is on a remote computer, the UNIX rcp starts rcp -t on the remote computer and sends the file. The &quot;-t&quot; option tells the remote rcp to start up in receive mode and wait for the incoming file. Windows rcp.exe has a different method of transferring files between computers, so it does not support the &quot;-t&quot; option.



RESOLUTION
The Interix version of rcp supports the &quot;-t&quot; option. To cause that version to be invoked, you have to use the Interix version of rshd daemon instead of the Windows Remote Shell service. The Interix rshd calls the Interix rcp, but the Windows Remote Shell service calls the Windows rcp.exe.



MORE INFORMATION
To configure the Interix version of rshd under SFU 3.0:  Turn off the Remote Shell Service. To do so:

 Microsoft Windows NT 4.0: In Control Panel, double-click Services, stop the Remote Shell Service, and then disable it. Microsoft Windows 2000 or Microsoft Windows XP: In Control Panel, double-click Administrative Tools, double-click Services, stop the Remote Shell Service, and then disable it.  Start an Interix command shell such as the C or Korn shell. Edit the Etc/Inetd.conf file to turn on the Interix version of rshd by removing the number sign (#) from the following line:


 * 1) shell stream tcp nowait NULL /usr/sbin/in.rshd in.rshd -a

</li> Restart the computer.</li> After you get inetd running as a daemon by editing Inetd.conf, you have to edit the Etc/Hosts.equiv file by using a C or Korn shell, because it replaces the %Systemroot%\System32\Drivers\Etc\.rhosts file that is used with the Win32 version of RSHSVC. This file will have the same format as the .rhosts file. Please note that this file does not support the + + construct and you must populate it with the specific hosts and users.</li></ol>

Keywords: kbprb KB323719

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.