How Do I Set User Privileges in Linux?
Contents

How do I grant administrator privileges in Linux?

Open the terminal application. For remote Ubuntu/Debian server use the ssh command and log in as the root user using either su or sudo. Create a new user named marlena, run: adduser marlena. Make marlena user ‘sudo user’ (admin) run: usermod –aG sudo marlena.

How do I change user roles in Linux?

How to Change a User’s Group in Linux

  1. Use the command usermod.
  2. Replace the examplegroup with the name of the group you want to be the primary.
  3. Replace the exampleusername with the name of the user account.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest