Skip to content

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

@Constancies

Description

@Constancies

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions