-
Notifications
You must be signed in to change notification settings - Fork 258
ubuntu: Add NOPASSWD sudoers rule for 25.10 and 26.04 #1813
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,9 @@ RUN apt-get update && \ | |
| rm -rd /var/lib/apt/lists/* | ||
| RUN rm /extra-packages | ||
|
|
||
| # Allow passwordless sudo for the sudo group | ||
| RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/90-toolbx-nopasswd | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files in |
||
|
|
||
| # Enable the use of p11-kit-client.so to access CA certificates from the host | ||
| RUN mkdir --parents /etc/pkcs11/modules | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files in
/etc/sudoers.d/must have strict permissions (typically0440or0400) and be owned byroot:root. If a file has more permissive permissions (such as0644, which is the default when created via redirection with a standard umask),sudoandsudo-rswill ignore the file or fail with a permission error. To ensure the passwordless sudo rule is honored, explicitly set the file permissions to0440.