QA-360 removed unneeded usermod

This commit is contained in:
Huan Truong 2026-06-03 18:10:22 -05:00
parent bdb51317b2
commit 87d3e58449
No known key found for this signature in database

View file

@ -148,9 +148,8 @@ WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
### Create user exclusively for session recording purposes
RUN (groupadd -g 1001 kasm-recorder \
&& useradd -M -u 1001 -g 1001 kasm-recorder \
&& usermod -a -G kasm-recorder) ; exit 0
RUN groupadd -g 1001 kasm-recorder \
&& useradd -M -u 1001 -g 1001 kasm-recorder
### FIX PERMISSIONS ## Objective is to change the owner of non-home paths to root, remove write permissions, and set execute where required
# these files are created on container first exec, by the default user, so we have to create them since default will not have write perm