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

chroot: userspec argument is not respected in chroot environment #7053

Closed
jfinkels opened this issue Jan 2, 2025 · 0 comments · Fixed by #7057
Closed

chroot: userspec argument is not respected in chroot environment #7053

jfinkels opened this issue Jan 2, 2025 · 0 comments · Fixed by #7057

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Jan 2, 2025

Environment: Ubuntu 20.04, uutils main branch (git commit 6a8b766), GNU coreutils v8.30

Steps to reproduce:

sudo chroot --userspec=65534 / id -G

What happens now: uutils chroot outputs the ID of the root user

0

What I expected to happen: GNU chroot outputs the ID of the user given in the --userspec argument:

65534

Notes: this is causing a failure in the GNU test file tests/chroot/chroot-credentials.sh.

@jfinkels jfinkels linked a pull request Jan 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant