我收到此错误:
visudo: >>>/etc/sudoers:syntax error near line 29 <<<
visudo: >>>/etc/sudoers.tmp unchanged
visudo: >>>/etc/sudoers:syntax error near line 29 <<<
我尝试安装 Hadoop(如何安装 Hadoop?)
add at the end the line to add hduser into sudoers file
hduser (ALL)=(ALL) ALL
但它不起作用。
答案1
要将用户添加到 sudoers,正确的语法是:
hduser ALL=(ALL:ALL) ALL
如果你想添加一个组是:
%hdgroup ALL=(ALL:ALL) ALL