We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31325e commit c5ca241Copy full SHA for c5ca241
docker/DockerFile
@@ -17,7 +17,10 @@ RUN apk add --no-cache syslog-ng && \
17
# install and configure sudo
18
apk add --no-cache sudo && \
19
addgroup sudo && \
20
- sed -i 's/#\s*%sudo\s*ALL=(ALL)\s*ALL/%sudo ALL=(ALL) NOPASSWD:ALL/' /etc/sudoers && \
+ # allow root to run any command
21
+ echo 'root ALL=(ALL) ALL' > /etc/sudoers && \
22
+ # allow everyone in the 'sudo' group to run any command without a password
23
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
24
# add user to run most of the integration tests
25
adduser -D sshnet && \
26
passwd -u sshnet && \
0 commit comments