Skip to content

chsh does not work #2953

Description

@UlyssesZh

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Cannot use chsh to change login shell.

Steps:

  1. Install another shell using apk, e.g., apk add zsh.
  2. Install chsh command: apk add shadow.
  3. Use chsh to change login shell: chsh -s $(which zsh).
  4. Exit terminal and open a new terminal, finding that the login shell is not changed.

Environment

Device Information:
WebView Info:
Package Name: app.vanadium.webview
Version: 154.0.8037.92.0

App Info:
Name: Acode
Package Name: com.foxdebug.acode
Version: 1.13.5
Version Code: 1011

Device Info:
Android Version: 17
Manufacturer: Google
Model: Pixel 9
Platform: Android
Cordova Version: 15.1.0

Screen Info:
Width: 1568
Height: 882
Color Depth: 24

Additional Info:
Language: en-US
User Agent: Mozilla/5.0 (Linux; Android 10; K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/154.0.0.0 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

Activity

added theissue type on Oct 1, 2026
moved this from Backlog to In progress in The Code Board - Acodeon Oct 2, 2026
added a commit that references this issue on Oct 3, 2026
fa9690f

blanhhy commented on Oct 4, 2026

@blanhhy

This has been a long-standing issue.
You can try acode-terminal-chsh.

This provides a convenient solution without altering acode's internal mechanisms.

RohitKushvaha01 commented on Oct 4, 2026

@RohitKushvaha01
Member

@UlyssesZh, Acode Terminal does not execute the /bin/login command so chsh will not work. Instead, Bash is hardcoded as the login shell, so you cannot change it directly. However, you can launch a different shell by appending exec <shell> to /initrc.

For example, if you want to use Fish as the default shell, you can run:

echo "exec fish" >> /initrc

This will start Fish whenever the terminal starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions