Last active
February 2, 2016 20:19
-
-
Save codeopensrc/f430506c93618bf4e4f7 to your computer and use it in GitHub Desktop.
Create Safe User for non-root port 80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install sudo | |
useradd -s /bin/bash -m -d /home/$USER -c "$USER" $USER | |
passwd $USER | |
##(enter password) | |
usermod -aG sudo $USER | |
sudo apt-get install libcap2-bin | |
sudo setcap cap_net_bind_service=+ep /usr/local/bin/node | |
pm2 start $YOUR_PM2_JSON | |
sudo env PATH=$PATH:/usr/local/bin pm2 startup -u $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment