Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
znmeb opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@znmeb
Copy link

znmeb commented May 19, 2024

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

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
@znmeb znmeb added the bug Something isn't working label May 19, 2024
@znmeb znmeb changed the title Distrobox chooses '/usr/sbin/bash' for shell on Arch Linux containers instead of the standard /usr/bin/bash Distrobox chooses /usr/sbin/bash for shell on Arch Linux containers instead of the standard /usr/bin/bash May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant