Sudo on ubuntu-22.04 does not allow running binaries from build dir with "sudo -u" #6106
Closed
2 of 10 tasks
Labels
bug report
investigate
Collect additional information, like space on disk, other tool incompatibilities etc.
OS: Ubuntu
question
Further information is requested
Description
sudo on ubuntu-22.04 prompts for a password for "sudo -u nobody" for a binary in the build directory. On previous iterations of ubuntu images as well as Mac OS work fine. Running a system binary such as /usr/bin/id works fine.
Sample repo and test run demonstrating issue: https://github.com/daztucker/runner-test/runs/7891375280?check_suite_focus=true
Platforms affected
Virtual environments affected
Image version and build link
Environment: ubuntu-22.04
Version: 20220815.3
Demo test run: https://github.com/daztucker/runner-test/runs/7891297501?check_suite_focus=true
Is it regression?
Environment: ubuntu-20.04, Version: 20220814.1 works ok.
Expected behavior
sudo should run the specified binary in the build dir as the specified user w/out prompting for a password
Actual behavior
sudo prompts for a password. Because there's no user to provide one, the command fails.
Repro steps
run "sudo -u nobody" on a binary in the build directory. See https://github.com/daztucker/runner-test/blob/main/.github/workflows/c-cpp.yml fro example.
The text was updated successfully, but these errors were encountered: