Skip to content

Commit

Permalink
docker: Restore more liberal permissions /home/user.
Browse files Browse the repository at this point in the history
  • Loading branch information
catwith1hat committed Dec 30, 2024
1 parent 0e86c0d commit 05e5d01
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.bn.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ SHELL ["/bin/bash", "-c"]

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.bn.arm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ COPY "qemu-arm-static" "/usr/bin/"

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.bn.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ COPY "qemu-aarch64-static" "/usr/bin/"

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.vc.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ SHELL ["/bin/bash", "-c"]

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.vc.arm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ COPY "qemu-arm-static" "/usr/bin/"

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down
3 changes: 2 additions & 1 deletion docker/dist/binaries/Dockerfile.vc.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ COPY "qemu-aarch64-static" "/usr/bin/"

# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;

USER user

Expand Down

0 comments on commit 05e5d01

Please sign in to comment.