Managing Users and Sudo Privileges on Linux Print

  • User Management, Linux Security, Sudo User, Add User
  • 0

For security, it is best practice not to use the root user for daily tasks. Instead, create a limited user with sudo (SuperUser Do) privileges.

Steps to Create a New User:

  1. Add the User: adduser vpsuser

  2. Grant Sudo Access:

    • Ubuntu/Debian: usermod -aG sudo vpsuser

    • Alma/Rocky: usermod -aG wheel vpsuser

  3. Test: Switch to the new user with su - vpsuser and try a command like sudo apt update.

Support: If you get locked out of your root account, please email support@vpsgrid.net or create a ticket.


Was this answer helpful?

« Back