Skip to content

Commit ff6507d

Browse files
committed
Add sycl to sudoers for 2204 images
1 parent e0a71fc commit ff6507d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devops/containers/ubuntu2204_build.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ RUN groupadd -g 1001 sycl && useradd sycl -u 1001 -g 1001 -m -s /bin/bash
3939
RUN usermod -aG video sycl
4040
RUN usermod -aG irc sycl
4141

42+
# Allow sycl user to run as sudo
43+
RUN echo "sycl ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
44+
4245
COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
4346

4447
USER sycl

0 commit comments

Comments
 (0)