blob: 539a2000bed7a40a390ca1cc8761d1de3959a5bf [file] [log] [blame]
Eran (ev672n), Voskb9708a72018-08-07 14:15:05 +03001#!/bin/sh
2# Create user
3
4USER="jetty"
5GROUP="jetty"
6UID="352070"
7GID="35953"
8
9# Remove user:
10deluser ${USER}
11
12##delgroup ${GROUP}
13
14echo "${USER}:x:${UID}:${GID}::/home/${USER}:Linux User,,,:/home/jetty:/bin/false" >> /etc/passwd
15
16echo "${GROUP}:x:${GID}:${USER}" >> /etc/group
17
18echo "${USER}:!:17501:0:99999:7:::" >> /etc/shadow
19
20mkdir /home/${USER} && chown ${USER}:${GROUP} /home/${USER}