title: Permission denied at hdfs
body: <p>I am new to hadoop distributed file system, I have done complete installation of hadoop single node on my machine.but after that when i am going to upload data to hdfs it give an error message <code>Permission Denied</code>.</p>
  
  <p>Message from terminal with command:</p>
  
  <pre><code>hduser@ubuntu:/usr/local/hadoop$ hadoop fs -put /usr/local/input-data/ /input
  put: /usr/local/input-data (Permission denied)
  
  hduser@ubuntu:/usr/local/hadoop$ 
  </code></pre>
  
  <p>After using sudo and adding hduser to sudouser:</p>
  
  <pre><code>hduser@ubuntu:/usr/local/hadoop$ sudo bin/hadoop fs -put /usr/local/input-data/ /inwe
  put: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="":hduser:supergroup:rwxr-xr-x
  
  hduser@ubuntu:/usr/local/hadoop$ 
  </code></pre>