blob: 6233c07727e1eb822485445eea219828ceb68735 [file] [log] [blame]
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03001#!/bin/sh
2# Create user
3
4USER="jetty"
5GROUP="jetty"
6UID="352070"
7GID="35953"
8
9# Remove user:
10deluser ${USER}
11
12delgroup ${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}