HOW TO: Turn On the Interix Telnet Daemon (324077)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows XP Professional
  • Microsoft Windows NT Server 4.0 SP6a
  • Microsoft Windows NT Workstation 4.0 SP6a

This article was previously published under Q324077

SUMMARY

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, including the Telnet protocol. Services for UNIX also includes a Win32-based telnet service. By default, the Win32-based telnet service is turned on, and the Interix one is turned off.

The Win32 telnet service uses a default shell of Cmd.exe, while the Interix telnet daemon uses user's default shell, either /bin/ksh or /bin/csh. Because only a single telnet server can listen on port 23, the telnet port, if you want to run the Interix telnetd, you must first turn off the Win32 based telnet server, and then turn on and start the Interix one.

back to the top

Turn Off the Windows Telnet Service

Services for UNIX installs the Telnet service (Tlntsvr.exe) as part of its typical installation. Before you can turn on the Interix telnetd, you must first stop, and then turn off the Windows Telnet service.

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

Turn On the Interix Telnetd

The Interix subsystem includes a full telnet 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 telnet 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 telnet daemon:
  1. Log on to the Windows server with an administrative-level account.
  2. Click Start, point to Programs, point to Services for UNIX, and then click Korn Shell to open an Interix Korn shell window.
  3. Edit the /Etc/Inetd.conf file:

    $ vi /etc/inetd.conf

  4. The vi command sequence for the edit is:

    /#telnet
    d/telnet
    :wq

  5. Find the Process ID for the inet daemon, and then send a kill -1 command to that process. This makes the daemon re-read its configuration file that you previously edited. To do so, use the kill -1 $(ps -e | grep ' inetd$'| tr -s " " | cut -f2 -d " ") command. This causes the inet daemon to reprocess its configuration file without stopping the inetd process. You can now use telnet to connect to the computer, and you can connect to the Interix subsystem.
back to the top

REFERENCES

For additional information about how to complete maintenance tasks after a UNIX to Windows migration, click the article number below to view the article in the Microsoft Knowledge Base:

324539 HOW TO: Perform Maintenance and Ancillary Tasks after a UNIX to Windows Migration


back to the top












Modification Type:MajorLast Reviewed:5/28/2003
Keywords:kbhowto kbHOWTOmaster KB324077 kbAudITPro