In addition to configuring sudoers file you have to add the configured user to the sudo group. Only after this it works.
Consider giving unlimited sudo privileges to regular users; on one user it may be a working setup (though in that case, too I strongly suggest you think twice what you actually need and configure sudo so that only those things can be done), if you're the only one who knows that user account (and if it's on a home pc or something), but remember that allowing sudo rights to a user and not thinking it well may end up in having your system breached. Shortly said, with unlimited sudo anyone could actually use it to become root, and even if sudo was limited, if it's usage is not well enough limited somebody can gain full root access with it. It's (a simple example) enough to get to launch a shell with root permissions (sudo) and that's it -- then you can simply edit sudoers to allow anything, or just reset root password.
|