Skip to content

Commit b09fd1e

Browse files
committed
Enable password-less sudoing for all users
1 parent 7c0e96e commit b09fd1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ RUN apt-get -y update
3131
RUN apt-get -y install python
3232
# Install aptitude, since ansible needs it (only apt-get is installed)
3333
RUN apt-get -y install aptitude
34+
35+
# Enable password-less sudo for all user (including the 'vagrant' user)
36+
RUN chmod u+w ${SUDOFILE}
37+
RUN echo '%sudo ALL=(ALL:ALL) NOPASSWD: ALL' >> ${SUDOFILE}
38+
RUN chmod u-w ${SUDOFILE}

0 commit comments

Comments
 (0)