-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
root can not write to file owned by root (and nogroup) #25177
Comments
@bernt-matthias Please confirm that everything (except starting RStudio) worked with Podman v4.9.4 on the very same HPC in August 2024. |
I can confirm that it worked back then, but I can't be 100% sure if I or an admin changed anything else. |
Addendum: Group ownership of file Cross references: |
@bernt-matthias This [strange group mapping |
@bernt-matthias How does IMHO idMappings:
gidmap:
- container_id: 0
host_id: 4533
size: 1
uidmap:
- container_id: 0
host_id: 61715
size: 1 means, that uid/gid mappings are not OK. Cross reference: ℹ See also Basic Setup and Use of Podman in a Rootless environment |
Edit: Stumbled over this in the liked docs:
This only means that subuid and subgid config can't be from LDAP, or? Because the user itself is from LDAP, i.e. no entry in |
Just realized that you probably need the complete files:
|
IMHO you need Then, everything should work fine. |
Thanks for the info. I will check with our admins regarding the |
With the fixed
Writing to this file also behaves normally. So I guess we can close this issue. Thanks a lot for all your time and patience. |
Issue Description
I'm still quite new to podman and containers and have a hard time to describe the issue
In
podman run --rm --entrypoint /bin/bash -p 8888:8888 -u root -e NB_USER=root -e NB_UID=0 -e NB_GID=0 -e JUPYTER_ALLOW_INSECURE_WRITES=true -e NOTEBOOK_ARGS="--allow-root" -it glcr.b-data.ch/jupyterlab/r/base
cd /usr/local/lib/R/etc
ls -la Renviron.site
:-rw-rw-r-- 1 root nogroup 21 Oct 31 10:38 Renviron.site
echo >> Renviron.site
gives mebash: Renviron.site: Permission denied
nogroup
(id
: uid=0(root) gid=0(root) groups=0(root),65534(nogroup))I just do not understand why I'm not able to write here. Is there anything special about
nogroup
? Since I'm root I canchown root:root Renviron.site
which then allows me to write.For another file:
ls -la Renviron
:-rw-r--r-- 1 root root 1858 Oct 31 10:38 Renviron
echo >> Renviron
ls -la
given-rwxr-xr-x 1 root root 1859 Jan 31 09:41 Renviron
lsattr
does not work:lsattr: Operation not supported While reading flags on Renviron
xref b-data/jupyterlab-r-docker-stack#5 (comment)
Steps to reproduce the issue
See above
Describe the results you received
Describe the results you expected
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
We use GPFS on our HPC.
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: