Skip to content

Conversation

@samfreund
Copy link
Member

@samfreund samfreund commented Nov 11, 2025

Previously, we checked using id, which fails if we're running under a different user (such as root). We now check the /etc/passwd file.


if id "ubuntu" >/dev/null 2>&1; then
cat /etc/passwd
if grep "ubuntu" /etc/passwd; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work if not running as root? Does anyone run this as non root?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It likely won't work if not run as root, we're the only ones who run this, for building the image, so it doesn't really matter.

@samfreund samfreund marked this pull request as draft November 11, 2025 22:06
@samfreund
Copy link
Member Author

Converting to a draft, the ubuntu user doesn't seem to exist here 🤔

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

Successfully merging this pull request may close these issues.

2 participants