Linux

Setup a new Linux user with admin rights

For security reasons, the root user should not be used directly. The root user has full control over the system and using it can create security risks. Instead, a regular user should be used (with the sudo command for important tasks).

1. Create a new user

sudo adduser <username>

2. Give it admin (sudo) rights:

sudo usermod -aG sudo <username>

3. Switch to this new user:

su - <username>