How to give any group all root privilege in sudoers file.

Allow a group all root privilege in sudo file.

Let’s first check the members of group using below command and then apply root privilege or Linux root access.

#tail /etc/gshadow


To give root privileges to group add a line by using sudoers file as shown below.

  • Type Command VISUDO to open sudoers file.
  • #visudo (save the sudoers file as we save a vim file using “wq!”)


Now, login as one of the user of rpgroup try root commands


This is all about group root privileges.

I hope you like this article…

Leave a Reply

Your email address will not be published. Required fields are marked *