Phone Sales & Support 1300 551 084

Phone Sales & Support 1300 551 084

Create a user and grant sudo privileges Print

  • 7

After deploying a new Velocity SSD VPS, it's recommended to create a new user account with sudo privileges.  This is preferred method instead enabling root login via SSH.  A user with full sudo privileges will be able to execute all commands as root.

  1. Login to the Entity Data Client Area -> Services -> Select your Velocity SSD VPS

  2. Click "NoVNC Console" to access the console.

  3. Login with username root and the root password as chosen during the ordering process.

  4. Add your new user account, i.e:
    useradd bob
    passwd bob

  5. Grant the user full sudo permissions by first opening the Sudoers file:
    visudo

  6. Add the new user, in this case bob with full permissions:
    bob ALL=(ALL) ALL

  7. Save and exit (i.e. :wq)

  8. You can now login via SSH with the new user.  You then gain root privileges with this command:
    sudo su - root

Was this answer helpful?

« Back