Sep 7, 2017

Create a non root user to run process

For example to create your own GlassFish user and group that exists solely to run GlassFish Server.   This user does not have any Linux admin privileges.

sudo groupadd glassfish
sudo useradd -s /bin/bash -d /home/glassfish -m -g glassfish glassfish

UNDO:

sudo userdel glassfish
sudo groupdel glassfish