Skip to content

Commit

Permalink
integration: test user fancy home
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
  • Loading branch information
greut committed Feb 29, 2020
1 parent 27d50a6 commit dbabc6c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions integration/dockerfiles/Dockerfile_test_user_home
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ RUN touch $HOME/hello
# testuser1 with the default home created by useradd.

RUN groupadd testgroup && \
useradd --create-home --gid testgroup testuser
useradd --create-home --gid testgroup alice \
useradd --create-home --home john --gid testgroup bob

USER testuser:testgroup
USER alice:testgroup

RUN touch $HOME/hello

USER bob:testgroup

RUN touch $HOME/hello

0 comments on commit dbabc6c

Please sign in to comment.