summaryrefslogtreecommitdiffstats
path: root/docker/docker_be/set_user.sh
diff options
context:
space:
mode:
authorStone, Avi (as206k) <as206k@att.com>2018-05-17 10:25:42 +0300
committerStone, Avi (as206k) <as206k@att.com>2018-05-17 10:25:42 +0300
commit530230e2299a1c78a79779ac03b0bbcf58260480 (patch)
tree45c1f52f85e618905cc4e9d27f3673e74302a699 /docker/docker_be/set_user.sh
parentc2a0c564d29df7f09e83e53ba9252dfab0db59f9 (diff)
Add docker files
Adding docker files so the docker job would run Change-Id: I7db917d261d480e28a51ff222f12422803b395e8 Issue-ID: SDC-1339 Signed-off-by: Stone, Avi (as206k) <as206k@att.com>
Diffstat (limited to 'docker/docker_be/set_user.sh')
-rwxr-xr-xdocker/docker_be/set_user.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/docker_be/set_user.sh b/docker/docker_be/set_user.sh
new file mode 100755
index 0000000..6233c07
--- /dev/null
+++ b/docker/docker_be/set_user.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Create user
+
+USER="jetty"
+GROUP="jetty"
+UID="352070"
+GID="35953"
+
+# Remove user:
+deluser ${USER}
+
+delgroup ${GROUP}
+
+echo "${USER}:x:${UID}:${GID}::/home/${USER}:Linux User,,,:/home/jetty:/bin/false" >> /etc/passwd
+
+echo "${GROUP}:x:${GID}:${USER}" >> /etc/group
+
+echo "${USER}:!:17501:0:99999:7:::" >> /etc/shadow
+
+mkdir /home/${USER} && chown ${USER}:${GROUP} /home/${USER} \ No newline at end of file