[GH-ISSUE #1213] Failed to init due to not standard linux shell #449

Closed
opened 2026-10-13 20:21:43 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @Mishavint on GitHub (Oct 28, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1213

Describe the bug
Tried to init self-hosted VPN, entered server info and it failed, since root was configured to use fish shell. Fixed after using bash as default shell.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Self-hosted VPN'

Expected behavior
Hosted vpn

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 2.1.2]

Server (please complete the following information):

  • OS: Ubuntu 20.04.6
  • SHELL: fish 3.1.0
Originally created by @Mishavint on GitHub (Oct 28, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1213 **Describe the bug** Tried to init self-hosted VPN, entered server info and it failed, since root was configured to use fish shell. Fixed after using bash as default shell. **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Self-hosted VPN' **Expected behavior** Hosted vpn **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Version [e.g. 2.1.2] **Server (please complete the following information):** - OS: Ubuntu 20.04.6 - SHELL: fish 3.1.0
Author
Owner

@vanyasem commented on GitHub (Oct 29, 2024):

The scripts should specify a shebang #!/usr/bin/env bash instead of relying on the default shell

check_user_in_sudo.sh fails to get executed on fish shell, resulting in an Error 205: ServerUserNotInSudo:

$ CUR_USER=$(whoami);\
  groups $CUR_USER
fish: Unsupported use of '='. In fish, please use 'set CUR_USER $(whoami)'.
<!-- gh-comment-id:2443841682 --> @vanyasem commented on GitHub (Oct 29, 2024): The scripts should specify a [shebang](https://en.wikipedia.org/wiki/Shebang_%28Unix%29) `#!/usr/bin/env bash` instead of relying on the default shell [check_user_in_sudo.sh](https://github.com/amnezia-vpn/amnezia-client/blob/4.8.2.3/client/server_scripts/check_user_in_sudo.sh) fails to get executed on fish shell, resulting in an [Error 205: ServerUserNotInSudo](https://docs.amnezia.org/ru/troubleshooting/error-codes/#error-205-serverusernotinsudo): ``` $ CUR_USER=$(whoami);\ groups $CUR_USER fish: Unsupported use of '='. In fish, please use 'set CUR_USER $(whoami)'. ```
Author
Owner

@vanyasem commented on GitHub (Oct 29, 2024):

Duplicate of https://github.com/amnezia-vpn/amnezia-client/issues/1201

<!-- gh-comment-id:2443844159 --> @vanyasem commented on GitHub (Oct 29, 2024): Duplicate of https://github.com/amnezia-vpn/amnezia-client/issues/1201
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#449
No description provided.