title: How to edit a HDFS group?
body: <p>I have a standalone cluster for practice purpose. I tried to add the root user to hdfs group by logging in as an HDFS user.</p>
  
  <p>The command I used is:</p>
  
  <blockquote>
    <p>hdfs dfs -chown -R root:hdfs /</p>
  </blockquote>
  
  <p>Now, I am able to access hdfs dfs commands as a root. But I don't know how to delete root from HDFS group. I tried this command as hdfs user:</p>
  
  <blockquote>
    <p>hdfs dfs -chown -R hdfs:hdfs /</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>groups</p>
  </blockquote>
  
  <p>command as a root user. But root is not added to any other group except for it's Primary group.</p>
  
  <p><strong>How am I supposed to change it back to the way it was?</strong></p>