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.
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:
- Log on to the Windows server with an administrative level account.
- Open the Services tool on Windows NT 4.0, or the Services MMC in Windows 2000 and Windows XP.
- Double-click the Telnet service.
- Stop the Telnet service, and then change the startup type to either Manual or Disabled.
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:
- 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.
- Edit the /Etc/Inetd.conf file:
$ vi /etc/inetd.conf
- The vi command sequence for the edit is:
- 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.
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:
HOW TO: Perform Maintenance and Ancillary Tasks after a UNIX to Windows Migration