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

Is user ubuntu with uid:gid=1000:1000 bug or a feature? #795

Closed
incebellipipo opened this issue Mar 11, 2025 · 3 comments
Closed

Is user ubuntu with uid:gid=1000:1000 bug or a feature? #795

incebellipipo opened this issue Mar 11, 2025 · 3 comments

Comments

@incebellipipo
Copy link

incebellipipo commented Mar 11, 2025

I recently realized that rolling and jazzy images have a user with username ubuntu:

ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash

When I run on the following on a amd64 machine

for v in rolling jazzy iron humble galactic foxy eloquent dashing
do 
     echo "❔checking $v";
     docker run -q --rm ros:$v-ros-base /bin/bash -c "getent passwd 1000" \
     && echo "✅ UID 1000 found in $v"\
     || echo "❌ UID 1000 not found in $v";
done

I get:

❔checking rolling
ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
✅ UID 1000 found in rolling
❔checking jazzy
ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
✅ UID 1000 found in jazzy
❔checking iron
❌ UID 1000 not found in iron
❔checking humble
❌ UID 1000 not found in humble
❔checking galactic
❌ UID 1000 not found in galactic
❔checking foxy
❌ UID 1000 not found in foxy
❔checking eloquent
❌ UID 1000 not found in eloquent
❔checking dashing
❌ UID 1000 not found in dashing

So my question for it now is:

  • Is it an artifact carried over from respective ubuntu docker image?
  • Will it be the standard moving forward?
  • Is it a bug?
@moriarty
Copy link

This is coming from a change in the underlying ubuntu:24.04 image, which now includes a default user ubuntu by default.

@incebellipipo
Copy link
Author

I saw that it was intentionally added to standardize non-root user.

See relevant thread:
https://bugs.launchpad.net/cloud-images/+bug/2005129/comments/1

Closing: unrelated with OSRF docker images.

@ruffsl
Copy link
Member

ruffsl commented Mar 18, 2025

Indeed, this change is from upstream, requiring me to adjust my dev container setup:

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

3 participants