2

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.

Gabber
  • 173

1 Answers1

3

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
Braiam
  • 67,791
  • 32
  • 179
  • 269