Microsoft KB Archive/201575

= How to Configure the Telnet Server to Use the Korn Shell =

Article ID: 201575

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Services for UNIX Add-On Pack
 * Microsoft Windows Services for UNIX 2.0 Standard Edition

-



This article was previously published under Q201575



SUMMARY
This article outlines how to configure your Services for UNIX telnet server to use the Korn Shell (Sh.exe) in place of the default logon shell (Cmd.exe).



MORE INFORMATION
The following instructions assume that Services for UNIX has been installed to the C:\SFU directory. This is not the default directory, but it is easier to show. The assumption is also made that you have created a user named TelnetUser and assigned this user a home directory of F:\home\TelnetUser.

 Run Notepad and insert the following lines:

@echo off

C:\SFU\Shell\SH.EXE -rL

 Save this file as C:\SFU\Telnet\shell.bat.  Create a new file in Notepad and insert the following lines:

EDITOR=vi export EDITOR alias ll="ls -l" alias la="ls -a" USERNAME=`basename $PWD` export USERNAME USER=$USERNAME export USER LOGNAME=$USERNAME export LOGNAME echo echo echo "Welcome to the Korn Shell!" echo echo  Save this file as F:\home\TelnetUser\profile.ksh. Run Tlntadmn.exe from Start, Run or from a command prompt. Select selection number 3 to make a registry change. Select selection number 4 to change the default shell.</li> Change DefaultShell to C:\SFU\Telnet\shell.bat</li> Select selection number 0 to exit this menu.</li> Select selection number 5 to stop the Telnet service.</li> Select selection number 4 to start the Telnet service.</li> Telnet in and test your modifications.</li></ol>

If you need to go back to the default Cmd.exe shell, the following is the exact syntax used for DefaultShell:

%SystemRoot%\System32\Cmd.exe /q /k

Additional query words: telnetd solar coaster sfu sh exe cmd

Keywords: kbhowto kbinfo kbnetwork KB201575

-

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

© Microsoft Corporation. All rights reserved.