Add user to sudoers list

sudoers - list of which users may execute what.

Login as root and then run the command visudo, add a line. Replace username to the actual user name.

username ALL=(ALL) ALL

/etc/sudoers - This file MUST be edited with the ‘visudo’ command as root.

To add all user in wheel group to sudoers list, login as root and then run the command visudo to uncomment the line below, or add this line is it not exist.

%wheel ALL=(ALL) ALL

One Response to “Add user to sudoers list”

  1. 2convertibleon 12 Jan 2022 at 11:35 pm

    1pavilion…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.