savoirfairelinux / cqfd

cqfd helps running commands inside the Docker container configured for your project, keeping the user and working directory the same inside the container
GNU General Public License v3.0
64 stars 31 forks source link

allow the non-interactive use of sudo inside the container #81

Closed Apteryks closed 4 years ago

Apteryks commented 4 years ago

When sudo is available, the user can use sudo to become root without being asked for a passphrase.

Using sudo can be useful for example when unpacking a rootfs archive and wanting to preserve the root permissions.

Other unrelated changes:

Apteryks commented 4 years ago

Abandoning this change, given we can easily add this to a Dockerfile:

RUN echo '%builders ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers

to the same effect.