Escalate privileges to test single user installation

This commit is contained in:
Paul Montero
2017-09-19 00:40:08 -05:00
parent 4d94ef7588
commit 16c7ea351a
7 changed files with 21 additions and 14 deletions

View File

@@ -1,11 +1,12 @@
FROM centos:7
RUN useradd -ms /bin/bash user
RUN yum update -y && \
yum install -y \
sudo \
which \
&& yum clean all
RUN useradd -ms /bin/bash user \
&& echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
CMD ["/usr/sbin/init"]