An error occurred yesterday when executing the mkdir command with the sudo command. The error prompts are as follows:
sudo mkdir /home/hadoop[sudofor infile. This incident would be reported.
The reason is that the current user does not borrow the root permission to perform the permissions of the following command, which is only available to members of the Admin group by default. Where does that set this thing up?
The answer is that the Visudo command goes into the/etc/sudoers file's edit mode to set it (requires root user).
Add the following record
<user_name> all= (All) all
Like what:
# User Privilege Specificationroot all =(All:all) allhadoopall = (all) all
means that users Hadoop can get root permission to do anything
Reference:
How does I add myself into the sudoers group?
Linux->> <user_name> Not in the sudoers file. This incident would be reported.