Rootless podman using --device and --group-add keep-groups device owned by nobody #23571
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
I am trying to use a printer inside an alpine container:
From inside the container
ls
reveals that the file is owned bynobody
.Host:
Container:
Stat says the owner is
65534
:Container:
More info:
Container:
If instead I use
--group-add lp
, I see this:Container:
But
ls
still sayslp0
is owned bynobody
.The results are the same regardless of
--privileged
or not.I followed instructions on all these reports:
But nothing seems to work.
I need the device to show with group
lp
otherwise CUPS doesn't even recognize it.FWIW: I seem to have access to the device as
cat /dev/usb/lp0
andecho ... > /dev/usb/lp0
do not fail with Permission denied or anything and the printer seems to be pushing paper out of it.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
crw-rw---- 1 nobody nobody 180, 0 Aug 10 21:24 lp0
Describe the results you expected
crw-rw---- 1 nobody lp 180, 0 Aug 10 21:24 lp0
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: