Commands to add a user to Ubuntu and grants the sudo privilege

Note: sudo is needed for this operation

Step 1
Create the user: sudo adduser newusername

Step2
Give sudo privilege to the new user: sudo usermod -aG sudo newusername (this is optional but is a common requirement for developers)

Also, if you want to use the user to develop web application, you should also grant it the access to ssl-cert: sudo adduser newusername ssl-cert