diff options
author | 2018-08-07 14:15:05 +0300 | |
---|---|---|
committer | 2018-08-07 14:15:05 +0300 | |
commit | b9708a7c3cfaf5767992a2b15180e7b85c459242 (patch) | |
tree | 076e19ea52232232e9060a9d7e074947a4a49508 /docker/set_user.sh | |
parent | cc32bd38d72e5c1c92048657083952d3e45c1819 (diff) |
adding the dcae dt code
Adding DCAE-dt code
Change-Id: Id6b779db9d24e10825fb97ad5fd46f41e65e6738
Issue-ID: SDC-1614
Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'docker/set_user.sh')
-rwxr-xr-x | docker/set_user.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/set_user.sh b/docker/set_user.sh new file mode 100755 index 0000000..539a200 --- /dev/null +++ b/docker/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} |