Microsoft Knowledge Base Email Alertz

How to troubleshoot Error 9004 in SQL Server

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 201575 - Last Review: November 1, 2006 - Revision: 1.1

How to Configure the Telnet Server to Use the Korn Shell

System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you. Visit the Windows Vista Solution Center
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.

  1. Run Notepad and insert the following lines:
    @echo off
    C:\SFU\Shell\SH.EXE -rL
  2. Save this file as C:\SFU\Telnet\shell.bat.
  3. 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
  4. Save this file as F:\home\TelnetUser\profile.ksh.
  5. Run Tlntadmn.exe from Start, Run or from a command prompt.
  6. Select selection number 3 to make a registry change.
  7. Select selection number 4 to change the default shell.
  8. Change DefaultShell to C:\SFU\Telnet\shell.bat
  9. Select selection number 0 to exit this menu.
  10. Select selection number 5 to stop the Telnet service.
  11. Select selection number 4 to start the Telnet service.
  12. Telnet in and test your modifications.

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

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
Keywords: 
kbhowto kbinfo kbnetwork KB201575
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate