How Do I Add a User to the Root Group in Linux?
Contents

Can I add a user to root group?

Your files or process cannot access by other group members or users on the Linux system. Secondary or supplementary user group – Users can be a member of other groups on the Linux system.
…
Linux Add User To Group Using Command-Line.

Tutorial details
Root privileges Yes
Requirements usermod/useradd
Est. reading time 5 minutes

How do I add an admin to a group in Linux?

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. Verify it by running the id marlena command.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest