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

No access to usernames except myself in apptainer container #2245

Closed
remtav opened this issue May 23, 2024 · 1 comment
Closed

No access to usernames except myself in apptainer container #2245

remtav opened this issue May 23, 2024 · 1 comment

Comments

@remtav
Copy link

remtav commented May 23, 2024

Version of Apptainer

What version of Apptainer (or Singularity) are you using? Run

apptainer version 1.2.1

Expected behavior

With a simple "ls -l", I expected to have access to owner usernames for files/directories. This works outside a container, but not inside.

image

Actual behavior

I only have access to user ids:

image

Steps to reproduce this behavior

apptainer pull ubuntu-latest.sif docker://ubuntu:latest
ls -l /path/to/my/directory

What OS/distro are you running

PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

How did you install Apptainer

Installed by my HPC. Unaware of installation details.

@DrDaveD
Copy link
Contributor

DrDaveD commented May 29, 2024

Yes that's normal, expected behavior with the suid mode of Apptainer, which you must be using. I think you can probably work around it with -B /etc/passwd,/etc/group. In unprivileged user namespace mode, every user and group except the original user will show up as "nobody".

@DrDaveD DrDaveD closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants