Difference between revisions of "Making your DW user a sudo account"

From Dreamwidth Notes
Jump to: navigation, search
(making a guide for DW sudo user)
(No difference)

Revision as of 21:25, 19 January 2009

This command given in Dreamwidth Scratch Installation doesn't seem to always work:

usermod -a -G sudo username

When this happens, trying to use sudo as the dw user can give you this error:

dw is not in the sudoers file.  This incident will be reported.

To put your dw user into the sudo group another way, you can also edit the /etc/sudoers file and add a line, depending on which you want.

If you don't want to enter your password during sudo commands, use:

dw  ALL = NOPASSWD: ALL

If you do want to enter your password during sudo commands, use:

dw ALL = (ALL) ALL