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

[Error] Username is not in the sudoers file after restart #928

Closed
Lin-Junhao opened this issue Aug 20, 2023 · 0 comments
Closed

[Error] Username is not in the sudoers file after restart #928

Lin-Junhao opened this issue Aug 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Lin-Junhao
Copy link

Describe the bug
I created an Archlinux container with this command:

$ distrobox create --image archlinux:latest --name test

The default user of the container has sudo permission:

$ sudo ls
Desktop  Developer  Documents  Downloads  Music  Pictures  Public  Templates  Videos

After a restart, it lost sudo permission:

$ sudo ls
deck is not in the sudoers file.

This issue might be related to #899 .

To Reproduce

$ distrobox create --image archlinux:latest --name test
$ distrobox enter test
$ sudo ls
$ exit
$ distrobox stop test
$ distrobox enter test
$ sudo ls

Expected behavior
sudo permission persists after restarting container.

Logs
https://0x0.st/HLxf.log

Desktop

  • Host OS: SteamOS 3.4.8
  • Container OS: Arch Linux
  • Podman version: 4.5.1
  • Distrobox version: 0aa7ec7
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