How to Log On as Another User in Interix (246327)



The information in this article applies to:

  • Interix 2.2.1
  • Interix 2.2.2
  • Interix 2.2.3
  • Interix 2.2.4

This article was previously published under Q246327

SUMMARY

This article describes how to log on as another user in Interix.

MORE INFORMATION

You can log on to another account using the login command in Interix. If you attempt to do this in the Korn Shell, the console window disappears when you quit the other account's Korn Shell session. This happens because the login command is aliased to exec login in the Korn Shell.

For a single command, you can avoid the alias by putting the login command in quotes or escaping the login command.

For a more permanent solution, you can either remove the alias in one of your startup files or you can copy or link the login executable file to another name, such as su. The semantics are not the same as the Berkeley Software Division (BSD) su command. For example, all users are prompted for passwords and the new environment is not constructed in the same way as with the BSD su command.

For additional information, refer to the following Web site:

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbinfo KB246327