Skip to content

Instantly share code, notes, and snippets.

@dragonjet
dragonjet / api_start2.json
Created Oct 31, 2015
api_start2-2015-10-31
View api_start2.json
This file has been truncated, but you can view the full file.
@dragonjet
dragonjet / 1-server.md
Last active Apr 16, 2020
Setup Web Server on EC2 Amazon Linux AMI
View 1-server.md

Step 1: Server Credentials

This assumes you are now connected to the server via SSH.

  • sudo -s Enter root mode for admin access
  • groupadd devgroup Create new group to be later granted access to /var/www/html

Creating a new Root User

  • useradd -G root,devgroup masterdev Create new root user. Also add to the devgroup
  • passwd masterdev Change password for the new root user
  • At this point, you'll need to input your new root user's new password
You can’t perform that action at this time.