Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • where should I place the youruser ALL line? the %sudo ALL=(ALL:ALL) ALL is already there Commented Jun 28, 2016 at 10:26
  • after the line: "%sudo ALL=(ALL:ALL) ALL" You should replace "youruser" with your username in the example. Commented Jun 28, 2016 at 10:27
  • 2
    but I do want the user to be prompted for a password Commented Jun 28, 2016 at 10:30
  • use the following code: youruser ALL=(ALL) ALL Commented Jun 28, 2016 at 10:33
  • 3
    If there is an (syntax) error in Your /etc/sudoers you may loose your sudo access at all.- Use visudo instead. Commented Jul 19, 2021 at 8:21