Microsoft KB Archive/170276
Article ID: 170276
Article Last Modified on 2/23/2007
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional Edition
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0 Standard Edition
This article was previously published under Q170276
This article explains how to use the Remote Shell (RSH) command on Windows NT against a UNIX server running the RSH service (daemon).
- On the UNIX computer running the RSH service, under the home directory for the user, create a file called ".rhosts".
- Enter in this file the host name of the client (Windows NT Workstation or Windows NT Server) and the user name used to log on at the client as follows:
where "ntclient" is the name of the Windows NT computer, and "username" is the name of the user logged on to the Windows NT computer. IP address of the host is not acceptable; use the host name itself. There should be only one user name per line in this file. The Windows NT command "hostname" can be used to get the computer name, and the resource kit utility "whoami" can be used to get the logon name of the Windows NT computer. The domain name to which the user is logged on is ignored.
- In the host's file on the UNIX computer, enter the host name of the Windows NT client and its IP address, so that the name can be resolved to the correct IP address.
Because host names and user names are case sensitive, take special care to make sure the cases match the actual names.
- On the Windows NT computer in the host's file, add an entry for the UNIX- host with its IP address.
Then enter the following command at the Windows NT computer:
rsh <Unix-host> -l <username> -n ls -l
Keywords: kbhowto kbinterop kbnetwork KB170276