Documentation / Tutorials / Server
Adding new users to Ubuntu
/ Server / Adding new users to Ubuntu
Here are a quick set of commands to add a new user to ubuntu server, so that we can give them access to manage the server.
-
adduser vyasa
this command will add the user 'vyasa' to your server, it will ask for the password, please specify the password and other details.
-
usermod -a -G sudo,www-data vyasa
We are now adding user vyasa to group sudo and www-data so that this user can edit web application files directly.
-
cd /home/vyasa & mkdir .ssh touch .ssh/authorized_keys chown -R vyasa:vyasa .ssh
These set of commands create the authorized_keys file for vyasa user. You can now put the openssh keys in here so that user can use the key for login to the system.