Give Root Access via Sudo or SSH
Posted by ASO Admin on 05 February 2020 01:39 PM
Do you need to share the power of root with other users, but you'd rather not disclose the root password? This article will explain how to share root access through SSH.
When a server is managed by multiple people, it may become practical to provide certain users access to the root to complete various tasks; however, it is not necessary for all users to log into the root user.
Share Root Access via SSH
Grant a User Full Permissions
Granting full permissions to a user will give them full access to the entire server. To grant a user full permissions:
Grant a Group Full Permissions
Similarly, root access can be granted to a group where everyone included is a trusted user. For example, if all members of the Admin team make up a group called 'admin', the root user could easily grant root access to everyone in the group with a line such as:
%admin ALL=(ALL) ALL
This will give everyone in the admin user group access to all sudo powers.