distrobox icon indicating copy to clipboard operation
distrobox copied to clipboard

sudo: account validation failure after container save and restore on different user

Open Constancies opened this issue 1 month ago • 0 comments

Describe the bug Following the instructions on https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#container-save-and-restore, if a user were to save a distrobox container, and then another user were to restore the container, the result would be a broken sudo.

To Reproduce

  1. Create a container
  2. Save it using the steps in https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#container-save-and-restore
  3. Restore the container with a different user

Expected behavior Sudo should be usable from within the container

Logs Run the commands with --verbose and post the log here as a file upload Attach also the output of podman logs or docker logs, possibly with --latest flag

podman-logs.txt

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? podman 5.6.2
  • Which version of distrobox? 1.8.2.1
  • Which host distribution? openSUSE Tumbleweed
  • How did you install distrobox? Through the Tumbleweed repos

Constancies avatar Nov 19 '25 21:11 Constancies