I am getting this error:

visudo: >>>/etc/sudoers:syntax error near line 29 <<<
visudo: >>>/etc/sudoers.tmp unchanged
visudo: >>>/etc/sudoers:syntax error near line 29 <<<

I was try to hadoop installation(How to install Hadoop?)

add at the end the line to add hduser into sudoers file
hduser (ALL)=(ALL) ALL

but it not working.

1 Answer 1


To add a user to the sudoers the correct syntax is:

hduser    ALL=(ALL:ALL) ALL

If you want to add a group is:

%hdgroup   ALL=(ALL:ALL) ALL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.