Create a new user

Ubuntu / Linux is the base operating system in Q Blocks computing instances.

Linux is a multi-user system:

This means that more than one person can interact with the same system at the same time. As a system administrator, you have the responsibility to manage the system’s users and groups by creating and removing users and assign them to different groups.

Create new user in Q Blocks instance:

We have created a one step easy process for you to create new users in your instance.

To create new user and setup its profile with right permissions, execute this command:

wget -qO - 'https://www.qblocks.cloud/resources/add-new-user.sh' --no-check-certificate | bash -s USERNAME PASSWORD
  • Make sure to replace USERNAME and PASSWORD in the above command with your desired values

The above command would do the following tasks:

  1. Create a new user for you with your desired username and password

  2. Grant the SSH access to the new user

Note:

If you don't want to use the above mentioned script then you can manually create a new user by running the standard bash commands for adding user in Linux. In this case, to grant SSH access to your new user you will have to add the AllowUser setting in SSH config. The SSH access would otherwise be restricted as a security measure to stop any unauthenticated access.

If you still face issues setting it up then don't hesitate to reach out to us at: support@qblocks.cloud

Last updated