summaryrefslogtreecommitdiffstats
path: root/base_sdc-jetty/set_jetty_user.sh
diff options
context:
space:
mode:
Diffstat (limited to 'base_sdc-jetty/set_jetty_user.sh')
-rwxr-xr-xbase_sdc-jetty/set_jetty_user.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/base_sdc-jetty/set_jetty_user.sh b/base_sdc-jetty/set_jetty_user.sh
new file mode 100755
index 0000000..6233c07
--- /dev/null
+++ b/base_sdc-jetty/set_jetty_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