[tracker-oci-images/sam/users] fedora: Set shell when creating users




commit 64ddd8a64663e531556267e47ed44456b7cceab2
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Dec 10 16:17:18 2020 +0100

    fedora: Set shell when creating users
    
    This will hopefully fix the 'shell not found' errors when using rawhide.

 fedora/latest.Dockerfile  | 2 +-
 fedora/rawhide.Dockerfile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/fedora/latest.Dockerfile b/fedora/latest.Dockerfile
index d5f2d3a..94c8862 100644
--- a/fedora/latest.Dockerfile
+++ b/fedora/latest.Dockerfile
@@ -38,6 +38,6 @@ RUN dnf remove -y tracker && \
     dnf clean all && \
     rm -R /root/*
 
-RUN useradd -Um tracker
+RUN useradd --groups wheel --create-home --shell /bin/bash --user-group tracker
 USER tracker
 WORKDIR /home/tracker
diff --git a/fedora/rawhide.Dockerfile b/fedora/rawhide.Dockerfile
index 41f4c3a..3a68222 100644
--- a/fedora/rawhide.Dockerfile
+++ b/fedora/rawhide.Dockerfile
@@ -23,6 +23,6 @@ RUN dnf remove -y tracker && \
     dnf clean all && \
     rm -R /root/*
 
-RUN useradd -Um tracker
+RUN useradd --groups wheel --create-home --shell /bin/bash --user-group tracker
 USER tracker
 WORKDIR /home/tracker


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]