IBM Support

Can I change root or another system account user's default shell?

Question & Answer


Question

Can I change root or another system account user's default shell from ksh to ksh93, or bash?

Answer

The Korn shell (/usr/bin/ksh) is set up as the default shell. The default or standard shell refers to the shells linked to and started with the /usr/bin/sh command. 
The AIX Operating System is tested with SHELL=ksh in all system account script processes, unless otherwise defined in the script. Using chsh or otherwise modifying system user accounts in /etc/passwd to change a system account shell to non-ksh could result in script failures at run time. Users are advised to test any default shell changes carefully in their environment.
Note:  The bash shell is an Open Source product, and is not supported by AIX Support cases. 
See "Resolving AIX Open Source Package and Application Issues":
  * https://www.ibm.com/support/pages/node/706233
IMPORTANT: Do not replace /usr/bin/sh or /usr/bin/ksh with other binaries!
  • The system is in 32-bit mode in phase 1.
  • The kernel cannot load a 64-bit binary until phase 2 of the boot.
  • There are shell scripts that run during phase 1 of a system boot.
# file /usr/bin/ksh
-> executable (RISC System/6000) or object module
# file /usr/bin/ksh93 
-> 64-bit XCOFF executable or object module not stripped
# file /usr/bin/bash
-> 64-bit XCOFF executable or object module
SUPPORT

If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2. Capture any logs or data relevant to the situation.

3. Contact IBM to open a case:

   -For electronic support, see the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, see the web page:
      https://www.ibm.com/planetwide/

4. Provide a clear, concise description of the issue.

 - For guidance, see: Working with IBM AIX Support: Describing the problem.

5. If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For guidance, see: Working with IBM AIX Support: Collecting snap data

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvzgAAA","label":"Commands"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
13 January 2021

UID

ibm16398925