sudo: How do you grant sudo access and other notes?

To grant sudo access to a user, use visudo


Why does #includedir start with a # when setting up a sudo environment?

Normally # would be used to create a comment. However, here they’re used to be more inline with C – i.e. to include files. E.g.

And in this directory an included file with:

<your username> ALL=(ALL) NOPASSWD:ALL

will mean you get sudo access.


Leave a Reply

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