Microsoft KB Archive/324076

= HOW TO: Turn On the Interix R Utilities =

Article ID: 324076

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows XP Professional
 * Microsoft Windows NT 4.0 Service Pack 6a
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q324076



IN THIS TASK
SUMMARY
 * Turn Off the Windows Remote Shell Service
 * Turn On the Interix rshd

REFERENCES



SUMMARY
This step-by-step article describes how to turn on the Interix R utilities. The Interix subsystem provides a fully POSIX-compliant environment that runs as a native subsystem in the Windows kernel. It includes more than 350 UNIX utilities, and includes an inetd daemon to handle a variety of network protocols. These include the Remote Shell protocol that forms the basis for the &quot;r-utilities&quot;, including rsh, rlogin, and others. Services for UNIX also includes a Win32-based Remote Shell service. By default, the Win32-based Remote Shell service is turned on and the Interix one is turned off.

The Win32 Remote Shell service uses a default shell of Cmd.exe, while the Interix rshd daemon uses the user's default shell, either /bin/ksh or /bin/csh. Only a single Remote Shell server can listen on port 514, the remote shell port. Because of this, if you want to run the Interix rshd, you must first turn off the Win32 based Remote Shell server, and then turn on the Interix one.

back to the top

Turn Off the Windows Remote Shell Service
Services for UNIX installs the Remote Shell Service (Rshsvc.exe) as part of its typical installation. Before you can turn on the Interix rshd, you must first stop, and then turn off the Windows Remote Shell service.

To turn off the Windows Remote Shell service:
 * 1) Log on to the Windows server with an administrative-level account.
 * 2) Start the Services tool in Windows NT 4.0, or the Services MMC in Windows 2000 and Windows XP.
 * 3) Double-click the Remote Shell Service service.
 * 4) Stop the Remote Shell Service service, and then change the startup type to either Manual or Disabled.

back to the top

Turn On the Interix rshd
The Interix subsystem includes a full remote shell daemon (server) that is started as part of the inet daemon (inetd). The inet daemon is controlled by the /etc/inetd.conf file, which includes the necessary line for starting the remote shell daemon, but the line is commented out. You must first edit the inetd.conf file, and then force the inet daemon to re-read the file.

NOTE: You must only edit the inetd.conf file by using a pure ASCII text editor. Interix includes the vi editor which is a pure ASCII editor.

To turn on the Interix rshd daemon:  Log on to the Windows server with an administrative-level account. Click Start, point to Programs, point to Services for UNIX, and then click Korn Shell to open an Interix Korn Shell window. Use the $ vi /etc/inetd.conf command to edit the /etc/inetd.conf file. The vi command sequence for the edit is:

/#shell

d/shell



 Find the process ID for the inet daemon, and send a kill -1 command to that process. This will force the daemon to re-read its configuration file that you edited in the previous step. To do so, use the kill -1 $(ps -e | grep ' inetd$'| tr -s &quot; &quot; | cut -f2 -d &quot; &quot;) command. This causes the inet daemon to reprocess its configuration file without stopping the inetd process. You can now use the r-utilities that use rshd to connect to the computer, and you can connect to the Interix subsystem.

NOTE: Interix uses the /etc/hosts.equiv and $HOME/.rhosts syntax to turn on connections from remote hosts.</ol>

back to the top

<div class="references_section">