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

patch: Replace sg -c with sudo --user #259

Merged
merged 4 commits into from
Jan 6, 2025
Merged

patch: Replace sg -c with sudo --user #259

merged 4 commits into from
Jan 6, 2025

Conversation

carlcsaposs-canonical
Copy link
Contributor

sg lxd -c on Ubuntu 24.04 prompts for password: actions/runner-images#9932

Best guess is that this change was caused by shadow being upgraded from 4.8.1 to 4.13 (from Ubuntu 22.04 to 24.04)

The contents of /etc/gshadow do not appear to have changed from Ubuntu 22.04 to 24.04. i.e.

# Ubuntu 22.04 GitHub runner
$ sudo cat /etc/gshadow | grep lxd
lxd:!::runneradmin
# Ubuntu 24.04 GitHub runner
$ sudo cat /etc/gshadow | grep lxd
lxd:!::runneradmin

`sg lxd -c` on Ubuntu 24.04 prompts for password: actions/runner-images#9932

Best guess is that this change was caused by [shadow](https://github.com/shadow-maint/shadow) being upgraded from 4.8.1 to 4.13 (from Ubuntu 22.04 to 24.04)

The contents of `/etc/gshadow` do not appear to have changed from Ubuntu 22.04 to 24.04. i.e.
```
# Ubuntu 22.04 GitHub runner
$ sudo cat /etc/gshadow | grep lxd
lxd:!::runneradmin
```
```
# Ubuntu 24.04 GitHub runner
$ sudo cat /etc/gshadow | grep lxd
lxd:!::runneradmin
```
@carlcsaposs-canonical
Copy link
Contributor Author

@carlcsaposs-canonical
Copy link
Contributor Author

Partially testing on canonical/mysql-router-k8s-operator#351

@carlcsaposs-canonical
Copy link
Contributor Author

@carlcsaposs-canonical
Copy link
Contributor Author

@carlcsaposs-canonical carlcsaposs-canonical merged commit 349e0c8 into main Jan 6, 2025
1 check passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the sg-fix branch January 6, 2025 15:00
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.

3 participants