89luca89 / 89luca89/distrobox

Distrobox chooses `/usr/sbin/bash` for shell on Arch Linux containers instead of the standard `/usr/bin/bash`

オープン
#1,401 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug wait-on-user
主要言語
Go
スター
13k
フォーク
541
平均マージ
20時間 47分
マージ済み PR(30日)
4

説明

**Describe the bug**
Distrobox creates a user with shell `/usr/sbin/bash` instead of the default `/usr/bin/bash`. While this may work for most use cases, I want to run RStudio Server in this container, and RStudio Server does not recognize `/usr/sbin/bash` as a legitimate shell name and will not let me log in!

**To Reproduce**
```
#! /usr/bin/env bash

set -e

echo ""
echo "***Defining distrobox environment variables"
export DBX_CONTAINER_IMAGE="docker.io/library/archlinux:latest"
export DBX_CONTAINER_NAME="arch-test"
export DBX_CONTAINER_HOME_PREFIX="$HOME/dbx-homes"

echo ""
echo "***Getting podman version"
podman --version

echo ""
echo "***Getting distrobox version"
distrobox --version

echo ""
echo "***Removing any existing distrobox"
distrobox rm --force $DBX_CONTAINER_NAME

echo ""
echo "***Removing any existing home directory"
rm --force --recursive $DBX_CONTAINER_HOME_PREFIX/$DBX_CONTAINER_NAME

echo ""
echo "***Creating distrobox"
distrobox create

echo ""
echo "***Entering distrobox - exit it once you receive a prompt"
distrobox enter $DBX_CONTAINER_NAME

echo ""
echo "***Getting container's '/etc/passwd'"
podman cp $DBX_CONTAINER_NAME:/etc/passwd .

echo ""
echo "***Getting container's logfile"
podman logs $DBX_CONTAINER_NAME > $DBX_CONTAINER_NAME-podman.log

echo ""
echo "***Finished"

```

**Expected behavior**
I expected the standard shell `/usr/bin/bash`

**Logs**
All the logs are in the attached zip archive.

[archlinux-distrobox-test.zip](https://github.com/89luca89/distrobox/files/15370586/archlinux-distrobox-test.zip)

**Desktop (please complete the following information):**
- podman version 5.0.3
- distrobox: 1.7.2.1
- Host: Univerasl Blue Bluefin DX NVIDIA 40
- Distrobox installed via `git clone` and `install`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。