From charlesreid1

Revision as of 18:41, 26 January 2015 by Admin (talk | contribs) (Created page with "# Procedure Create droplet (logging in as root) Add non-root user account Give non-root user account sudo abilities * add to root group: <pre>usermod -G root charles</pre> * m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  1. Procedure

Create droplet (logging in as root)

Add non-root user account

Give non-root user account sudo abilities

  • add to root group:
    usermod -G root charles
  • make sudoer:
    sudo adduser charles sudo

Test sudo abilities

  • sudo -; whoami

Disable non-root login

  • sudo vim /etc/ssh/sshd_config
  • change
    PermitRootLogin yes
    to
    PermitRootLogin no